Javascript Assignment 12 |
<head>
<script type="text/javascript">
<!--
function myPopup() {
window.open( "http://www.google.com/" )
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onClick="myPopup()" value="POP!">
</form>
<p onClick="myPopup()">CLICK ME TOO!</p>
</body>
Pop 2
<head><script type="text/javascript"><!--function myPopup2() {window.open( "http://www.google.com/", "myWindow","status = 1, height = 300, width = 300, resizable = 0" )}//--></script></head><body><form><input type="button" onClick="myPopup2()" value="POP2!"></form><p onClick="myPopup2()">CLICK ME TOO!</p></body>
Post a Comment