User Tag List

4608Views
Results 1 to 5 of 5

Thread: Code Requesting

  1. #1
    Member Xronic's Avatar
    Join Date
    Feb 2015
    Posts
    171
    Coins
    1
    Thumbs Up
    Received: 0
    Given: 0

    Lightbulb Code Requesting

    Hello, i would like to know if nay coders know of a script that when you click on a link it goes to the link and opens a new tab. Even if it's in JS.


    0 Not allowed! Not allowed!

  2. #2
    Member haendler's Avatar
    Join Date
    Aug 2014
    Posts
    34
    Coins
    0
    Thumbs Up
    Received: 0
    Given: 0
    Hey, how do you exactly mean that?

    Do you own a website and want the link to appear in another tab?
    Do you want to click on links and they should appear in a new tab?

    0 Not allowed! Not allowed!

  3. #3
    Member Xronic's Avatar
    Join Date
    Feb 2015
    Posts
    171
    Coins
    1
    Thumbs Up
    Received: 0
    Given: 0
    I mean like if you click on a link the tab you clicked on the link in will foawrd to http://link and also open a new tab and go to a link

    0 Not allowed! Not allowed!

  4. #4
    Wind Guardian Angemon's Avatar


    Join Date
    Jul 2014
    Posts
    2,571
    Coins
    813
    Thumbs Up
    Received: 1,186
    Given: 465
    Quote Originally Posted by Xronic View Post
    I mean like if you click on a link the tab you clicked on the link in will foawrd to http://link and also open a new tab and go to a link
    try this one
    PHP Code:
    <a href="https://a2s.in" target="_blank" onclick="window.open('http://google.com'); window.open('http://skype.com');">Click Me</a
    test it here > Edit fiddle - JSFiddle

    if you don't want A2S to be opened in new tab , and you just want the two others to be opened in new tab try this

    PHP Code:
    <a href="https://a2s.in" onclick="window.open('http://google.com'); window.open('http://skype.com');">Click Me</a

    0 Not allowed! Not allowed!
    Last edited by Angemon; 02-27-2015 at 11:03 PM.



  5. #5
    Member Xronic's Avatar
    Join Date
    Feb 2015
    Posts
    171
    Coins
    1
    Thumbs Up
    Received: 0
    Given: 0
    thanks alot bro! Whoohoo

    0 Not allowed! Not allowed!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •