Change window location : Window Properties « Window Browser « JavaScript DHTML






Change window location

   

<HTML>
<BODY>
<FORM>
    <INPUT TYPE="button" value="Java2s.com" onClick="window.location='http://www.java2s.com'">
    </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.Open a new window and load new page
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)