Pages

Sunday, July 1, 2012

How To Open Multiple Links With One Click For Blogger



Step 1:

Create a normal link as shown using <a> tag:
<a href="Your_Frist_URL" target="_blank">Your Link To Click</a>

Step 2:

Now add one more link to the above code
as:
<a href="Your_First_URL" target="_blank" onclick="window.open(&quot;&quot;Your_Second_URL&quot;&quot;);">Your Link To Click</a>

At this point on a single click it would open 2 links.

Step 3:

To open a third link to the above code, you can modify the code as:
<a href="Your_First_URL" target="_blank" onclick="window.open(&quot;Your_Second_URL&quot;); window.open(&quot;Your_Third_URL&quot;);">Your Link To Click</a>

By this way you can create to open more than 3 URLs by following the above method.

Live demo below : (click below link to open 3 windows/tabs)

Your Link To Click

The above demo code i s coded as shown below:
<a onclick="window.open(&quot;http://www.google.com&quot;); window.open(&quot;http://www.facebook.com&quot;)" href="http://www.yahoo.com" target="_blank">Your Link To Click</a>

copy paste the above code and try it in your site whether it works.

No comments:

Post a Comment