JavaScript Tutorials

Pop-up a new browser window

pop_up_a_new_window.html

<head>
<title>Pop-up a new browser window</title>

<script language="javascript" type="text/javascript">
<!--
function popUpMyWindow () {
window.open("pop_up_demo.html", "myWindowName", "width=250, height=210, scrollbars=yes, resizable=yes");
}
// -->
</script>

</head>
<body>
<a href="javascript:popUpMyWindow();">Click here</a></p>
</body>
</html>

Pop-up a new browser window
JavaScript Tutorials
Other Tutorials