New Page in a New Window

In order to always open a new page in a new window you can employ

window.open function of JavaScript:

 window.open(URL, UNIQUE_TITLE, WINDOW_FEATURES) 

window.open(URL, UNIQUE_TITLE, WINDOW_FEATURES)


Note:

If you have a number of links that use this JavaScript snippet and want to open each of them in a separate window remember to set UNIQUE_TITLE to a unique string for each of them. If those strings are the same, the new window will be created only once and it will be reused every time you click such link.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: