Java Script Program To Learn Operations of Windows
Java Script Program To Learn Operations of Windows
<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>