Ad Code

Responsive Advertisement

JavaScript note - opening and closing deffernt windows 5.3

 JavaScript note - opening and closing deffernt windows 5.3




<html>

<head>

<title>opening and closing deffernt windows</title>

</head>

<body>

<form>

<p>

<input type="button" value="OpenWindow1" onClick="newwin1=window.open('deepak.html','m')">



<input type="button" value="OpenWindow2" 

onClick="newwin2=window.open('dinesh.html','NewWin2','toolbar=no,width=200, height=200')">


<input type="button" value="OpenWindow3"

onClick="newwin3=window.open('suraj.html','NewWin3','toolbar=no, status=no,width=200, height=200'); newwin3.document.write('hello')">



</p>

<input type="button" value="CloseWindow1" onClick="newwin1.close()">


<input type="button" value="CloseWindow2" onClick="newwin2.close()">


<input type="button" value="CloseWindow3" onClick="newwin3.close()">


</form>

</body>

</html>


Post a Comment

0 Comments