How to Open multiple links by a single click

Pin It
Hello fellow Bloggers. A reader just asked about opening more than 1 link by clicking a link. I am presenting down the html code for that. You can open as many links by clicking single anchor text link. All the links will open in new tabs.

To open link in new tab

A regular link can be opened in new tab. Just place target='_blank' after the URL.
Like this
<a href="URL link" target="_blank">Text to Display</a>

To open multiple links in new tabs

To open more than one links just add the following code
onclick="window.open(&quot;YOUR_2nd_URL&quot;);"

Your link html will look like this
<a href="1st Link" onclick="window.open(&quot;2nd_Link&quot;);">Link Text</a> 

Just take this example Blogger SEO by UK . This link will open our homepage in current tab and 2nd link in new tab. But the text shown is one for both link tabs. Down is the html code.
<a href="http://www.blogtipsuk.com/" onclick="window.open(&quot;http://www.blogtipsuk.com/2015/05/how-to-make-money-with-infolinks-on-blogger.html&quot;);">Blogger SEO by UK</a> 

You can add as many links as you like with this code.
Hope its clear for all the readers. Have a good day!

PLEASE NOTE:

If you have any questions regarding this article,please comment and I'll reply as soon as possible.

We have Zero Tolerance to Spam. Comments with Links will be deleted.

8 comments:

  1. SEO training Point is one of the best and top company that provides SEO training with 100 percent placement assistance at affordable price. Come for a free Demo!

    ReplyDelete
  2. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

    Dotnet Training in Chennai

    ReplyDelete

  3. Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way.Thank you so much

    Personal Installment Loans
    Title Car loan
    Cash Advance Loan

    ReplyDelete
  4. I found the blog some what interesting in its content wise and easier to understand what they had said. I love if you publish the blogs often.
    Pawn Shop
    Pawn Shops in Alabama
    Pawn Brokers
    Pawn Loans
    Pawn Loans in Alabama
    Pawn Shops near me

    ReplyDelete
Emoticons Smileys for Blogger Comments
Show Emoticons >>

PLEASE NOTE:

If you have any questions regarding this article,please comment and I'll reply as soon as possible.

We have Zero Tolerance to Spam. Comments with Links will be deleted.