Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
25 views1 page

JavaScript Window Functions Guide

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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

JavaScript Window Functions Guide

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
We take content rights seriously. If you suspect this is your content, claim it here.
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