DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

How To Open Window Using Javascript

12.27.2011
| 2853 views |
  • submit to reddit
        The syntax of the window.open method is given below:
open (URL, windowName[, windowFeatures])

URL
The URL of the page to open in the new window. This argument could be blank.

windowName
A name to be given to the new window. The name can be used to refer this window again.

windowFeatures
A string that determines the various window features to be included in the popup window (like status bar, address bar etc)

The following code opens a new browser window with standard features.
window.open ("http://www.javascript-coder.com","mywindow");

<a href="http://www.java-forums.org/blogs/spring-framework/"><strong>spring framework</strong></a>