Open a new window and load new page : Window Properties « Window Browser « JavaScript DHTML






Open a new window and load new page

   

<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>

   
    
    
  








Related examples in the same category

1.Modifies the properties and the contents of the browser's windows
2.Access window properties
3.Displaying the Associative Properties Area of a Window Object
4.Change status bar with mouse click
5.Output tag name from window event to status bar
6.Change window location
7.Set text for windows status bar
8.References to Window Objects
9.A Main Window Document
10.Open a new window with your own options
11.X/Y Marks the Spot for a popup window (IE)