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(""Your_Second_URL"");">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("Your_Second_URL"); window.open("Your_Third_URL");">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("http://www.google.com"); window.open("http://www.facebook.com")" 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