0% found this document useful (0 votes)
14 views

Java Script Program To Learn Operations of Windows

The document contains HTML code and JavaScript functions to open, close, write content to, and redirect a window. It has buttons to call each function to demonstrate opening and manipulating windows.

Uploaded by

rohitt69
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Java Script Program To Learn Operations of Windows

The document contains HTML code and JavaScript functions to open, close, write content to, and redirect a window. It has buttons to call each function to demonstrate opening and manipulating windows.

Uploaded by

rohitt69
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

<html>

<head>
<title>
Lots Of Windows Window HE window
</title>
<script>
var win;
function openwindow(){
win = window.open("","","width=400px,height=400px");

}
function closewindow(){
win.close();

}
function contentwindow(){
win = window.open("","","width=1000px,height=1000px");
win.document.write("<h1> HELLO </h1>");
}
function redirect(){
win=
window.open("https://www.youtube.com/","","width=500px,height=500px")
}

</script>
</head>
<body>
<form>
<input type="button" value="OPEN" onclick="openwindow()" />
<input type="button" value="CLOSE" onclick="closewindow()" />
<input type="button" value="CONTENT" onclick="contentwindow()" />
<input type="button" value="LINKTOYT" onclick="redirect()"/>
</form>
</body>
</html>

You might also like