How To Open Two Link At A Time On A Single Click?

A reader asked if she can make a navigation tab open more than one link when clicked. The answer is YES it can be done, with the help from a small Javascript. Occasionally we got such a situation that we need multiple links to be opened together. Say, you are an owner or author of a blog or website that supply different types of download e.g. movies, themes, software, wallpapers etc, your web page must contain a clickable link. You might like to add more than one link to be opened when visitor click on the link so that you can earn more (by affiliate/ linkbucks/adfly) or increase page views etc. In that case you can do this stuff with simple script. We need a little modification instead of our regular html code to make open more than one link when visitor’s click.

Not only the reason i describe above but also multiple links can be opened in a single click for various purpose. There might be several ways to open more than one link just a single click, i narrate 2 systems. See the example of open multiple web pages, in separate windows, with one mouse click.



1.) Open One-Link In New Tab:

There are three type of code we have, the first one is simple as you know and it will be only apply of <a> tag whereas second one have the same function but can apply on any tags like <div, span, h1, h2, h3, p> etc. The third one is also same as second one but it just contain few chracters more to be playble in old browers.
<a href="http://www.exeideas.com" target="_blank">Open One Link New Tab</a>
<a onclick="window.open('http://www.exeideas.com');" >Open One Link New Tab</a>
<a onclick="window.open('http://www.exeideas.com','newwin');" >Open One Link New Tab</a>

2.) Open One-Link In Same Tab:

There are two type of code we have, the first one is simple as you know and it will be only apply of <a> tag whereas second one have the same function but can apply on any tags like <div, span, h1, h2, h3, p> etc.
<a href="http://www.exeideas.com" >Open One Link In Same Tab</a>
<a onclick="location.href='http://www.exeideas.com';" >Open Link In Same Tab</a>

3.) Open Two-Links:

This is a special code that will open your two links on one click in which one will be in same tab and othre will be in new tab and it will be only apply of <a> tag.
<a href="http://www.exedeas.com" onclick="location.href='http://www.exeideas.com';" target="_blank">Open Two Links With One Click</a>

Customization:

1.) Just Change Your URL In The Above Code.
2.) Change The Text Of Link Or Add Image Or Apply Anywhere.
3.) Save And Done…