How can i make This Link Open in New Window??

Discussion in 'HTML & Website Design' started by Ojasvi Bhargava, Jul 13, 2010.

  1. #1
    Here it is:
    <script type="text/javascript">
    var infolink_pid = 107467;
    var infolink_wsid = 0;
    </script>
    <script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script>

    Note: This is infolinks ad code.
    BTW, my site: planetcricket.tk
     
    Ojasvi Bhargava, Jul 13, 2010 IP
  2. sampathsl

    sampathsl Guest

    Messages:
    861
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    As I see we cannot handle the onclick function here "infolinks_main.js"? Links are generated by the info links system.
     
    sampathsl, Jul 13, 2010 IP
  3. Sandino

    Sandino Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try target="_blank" or 456bereastreet.com/archive/200605/using_javascript_instead_of_target_to_open_new_windows/
     
    Sandino, Jul 13, 2010 IP
  4. ayekaye01

    ayekaye01 Peon

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js" target="_blank"></script>
     
    ayekaye01, Jul 19, 2010 IP
  5. Sdigitalpoint007

    Sdigitalpoint007 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    so this is the ad code that was given to you, and you want the ad to open in a new window so people don't navigate away from your site? I think change the hard code of the ad which usually can't be done by your. YOu can try target="_blank" but that usually work only with <a href="......>
     
    Sdigitalpoint007, Jul 19, 2010 IP
  6. armysurplus365

    armysurplus365 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't know what's the difference between an ad code and a regular code you code for a site. The only thing I know is that it's you can just do what these guys said. using target="_blank" as one of the attributes of your anchor tag will be much easier than using javascript. Plus, your link will be read by Search Engine crawlers.
     
    armysurplus365, Jul 19, 2010 IP
  7. infocusweb

    infocusweb Guest

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i am also want to know this please tell me if you get answer
     
    infocusweb, Jul 20, 2010 IP
  8. annieshark

    annieshark Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    target="_blank" tag is what i always use - why make it complicated?
     
    annieshark, Jul 22, 2010 IP
  9. andrewdavid

    andrewdavid Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I don not understand your code but i always make the link to open in new window by using the target="blank" in "a" tag...try it i, hope it will work...
     
    andrewdavid, Jul 22, 2010 IP
  10. kinetikit

    kinetikit Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Very useful information here. I also want to know.Please help us.
     
    kinetikit, Jul 22, 2010 IP
  11. micki.the.creater

    micki.the.creater Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    hi'
    use <a href="..." target="_blank"></a>
     
    micki.the.creater, Jul 24, 2010 IP
  12. naufio

    naufio Active Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #12
    I always make the link to open in new window by using the code for target="blank".
     
    naufio, Jul 24, 2010 IP