Open a Separate Child Browser Window Using JavaScript

You probably have seen some Web sites that automatically launch new windows in your browser to show an advertisement or an affiliated Web site. You can do this with the open method of the window object.

 open(URL, WindowName, WindowFeatures)

If you specify a URL, the window will automatically open to that URL. WindowName allows you to specify which window to use. If you use a unique window name, a new window will be opened. If you use the name of an existing window, it will navigate to the given URL. Window features allow you to specify the height, width, menu bar, tool bar, status bar, and so forth.

 
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: