Open new window : open « Window « JavaScript Tutorial






<HTML>
<HEAD>

<SCRIPT language="JavaScript">
<!--

function new_win()
{
 window.open("http://www.java2s.com","mywin","width=400,height=300,screenX=50,left=50,screenY=50,top=50,status=yes,menubar=yes");
}

//-->
</SCRIPT>

</HEAD>

<BODY>

<FORM name="myform">
<INPUT TYPE="button" value="Open New Window" onClick="new_win()">
</FORM>

</BODY>

</HTML>








19.12.open
19.12.1.Open new window
19.12.2.Popup window with window.open
19.12.3.Open new window with 'toolbar=no, status=no, width=200,height=200'
19.12.4.Open new window with '_blank' setting
19.12.5.Open window in different styles
19.12.6.This example pops up a new window and then writes a string to it
19.12.7.Using document.write() on the Current Window
19.12.8.Using document.write() on Another Window