Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Open a new window with button

<html> <head> <script> function startGame(){   var stadium = window.open("http://www.rntsoft.com", "asdf", "height=450,width=300");   stadium.focus(); }  </script> </head> <body> <form> <input type = "button" value = "start game" onClick = "startGame()"> </form> </body> </html>