Open a new window with button
<html>
<head>
<script>
function startGame(){
var stadium = window.open("http://www.java2s.com", "asdf", "height=450,width=300");
stadium.focus();
}
</script>
</head>
<body>
<form>
<input type = "button" value = "start game" onClick = "startGame()">
</form>
</body>
</html>
Related examples in the same category