Javascript

Using the window.open method

17-Jul-2009 01:02:17

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://tutorial.kabarku.com","mywindow");


Note: The popups created using 'window.open()' can get blocked by popup blockers.


 Reply Comment
 
 
Your name
Website http://
Comment
   
Image verification code
Retype image code here