Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[CODE] Jscript Push Button - Pop Up
#1
Jscript Push Button - Pop Up 
Code:
Upgraded JavaScript
Popup Window!Now that we have the tools, let's make a sophisticated
JavaScript popup window that we can be proud of!
HTML & JavaScript Code:
<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>
Display:
CLICK ME TOO!
Now, that is a prime example of a worthless popup! When you make your
own, try to have them relate to your content, like a small popup with no
navigation that just gives the definition or explanation of a word,
sentence, or picture!
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)