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

Auto-Clicking a link in an Iframe

Discussion in 'HTML & JavaScript' started by Sniper, Apr 3, 2009.

  1. Sniper

    Sniper Regular Member

    Joined:
    Dec 30, 2008
    Messages:
    471
    Likes Received:
    213
    Location:
    Torrent Assault
    Home Page:
    I am looking to find a way to automatically click a link in an iframe when a page loads. I have tried a variety of these:

    <frame src ="http://urlhere.com" width="100%" height="300" name="test">
    <p>Your browser does not support iframes.</p>
    </iframe>
    <script type="javascript">
    document.test.links[0].click(); //I have tried a variety of these
    </script>

    I can't seem to get it to work. there is only one link in the page.

    Also, it doesn't have to be in an iframe. I just want the page with my link to load, then a click sent to that link. This is not for cheating adsense or anything else of that nature.

    Can anyone help?
     
  2. blackhat+er

    blackhat+er Regular Member

    Joined:
    Feb 19, 2009
    Messages:
    217
    Likes Received:
    150
    I am lookin for that as well

    ps. who cares it you were adjacking:)
     
  3. Sniper

    Sniper Regular Member

    Joined:
    Dec 30, 2008
    Messages:
    471
    Likes Received:
    213
    Location:
    Torrent Assault
    Home Page:
    Actually, this is so I can win a radio contest for my nephew. It was about getting votes for the profile, and cookie stuffing worked for one day, then they introduced some javascript that prevented that. Instead there is a security token that creates a hidden post form upon the click of the link. I almost got a workaround figured out for it..
     
  4. blackhat+er

    blackhat+er Regular Member

    Joined:
    Feb 19, 2009
    Messages:
    217
    Likes Received:
    150
    ahh i see. couldnt you just iframe it under a youtube video and send traffic to it on one of your sites.
     
  5. lurnme

    lurnme Regular Member

    Joined:
    Jul 16, 2008
    Messages:
    309
    Likes Received:
    95
    Pretty sure you cannot click a link on a 3rd party site in an iframe when someone views the page. It blocks that action for security reasons, if it was a page on your own site it would be a different matter. If you could I would think people on here would def be abusing that.
     
  6. Barbacamanitu

    Barbacamanitu Power Member

    Joined:
    May 8, 2008
    Messages:
    500
    Likes Received:
    91
    You cant access iframes that way.. I've tried many, many times. Just send traffic to the link that is being clicked on with a fake referrer. :]
     
  7. Sniper

    Sniper Regular Member

    Joined:
    Dec 30, 2008
    Messages:
    471
    Likes Received:
    213
    Location:
    Torrent Assault
    Home Page:
    Yah i gave up on it.. i wasted too much time trying to figure it out.