1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

in one click 5 link open in new tab?

Discussion in 'HTML & JavaScript' started by mylikes786, Dec 26, 2013.

  1. mylikes786

    mylikes786 Registered Member

    Joined:
    Oct 31, 2013
    Messages:
    80
    Likes Received:
    6
    As my title i want in one click 5 link open in new tabs
    How can i do this?

    Thanks in advance :)
     
  2. dannyvriens

    dannyvriens Registered Member

    Joined:
    Apr 3, 2010
    Messages:
    91
    Likes Received:
    32
    Hi i don't know for sure what you are looking for but maybe this is something in the direction.

    <html>
    <script>
    function pageloader()
    {

    window.open("http://www.example.com", '_blank');
    window.open("http://www.google.com", '_blank');

    }

    </script>
    <body>
    <a href="#" onclick="pageloader();">Click here </a>


    </body>
    </html>

    Let me know if you need any future assist :)
     
    • Thanks Thanks x 2
  3. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,895
    Likes Received:
    7,484
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    Wouldn't any popup blocker will stop any such script from working?
     
  4. HeRBaR

    HeRBaR Supreme Member

    Joined:
    Aug 15, 2011
    Messages:
    1,216
    Likes Received:
    980
    Occupation:
    Sleeping
    Location:
    localhost
    Home Page:
    Why 5??? and not 35??? :p
    As barto said any popup blocker will stop this kind of scripts
     
  5. dannyvriens

    dannyvriens Registered Member

    Joined:
    Apr 3, 2010
    Messages:
    91
    Likes Received:
    32
    I give him here only some input :) what will he learn if you give the whole thing ... i learn more by myself from input from others then copy past work ^^