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

Make JavaScript Click a Link..??

Discussion in 'Cloaking and Content Generators' started by x5g7j9l3x, Oct 3, 2009.

  1. x5g7j9l3x

    x5g7j9l3x Junior Member

    Joined:
    Feb 20, 2009
    Messages:
    127
    Likes Received:
    1
    Is there anyway to make JavaScript auto click a link on a page that does a php redirect..??
     
  2. eskimo

    eskimo Regular Member

    Joined:
    Dec 1, 2008
    Messages:
    474
    Likes Received:
    178
    what you mean? like make it seem like a link has been clicked?
    i dont think so. you can make a META redirect to a page after a certain amount of time
     
  3. aliskorn

    aliskorn Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 21, 2008
    Messages:
    484
    Likes Received:
    459
    Occupation:
    Psychologist & programmer
    Put an id on the link. And then do something like document.getelementbyid"yourid". invokemember"click" ..or something like that.
     
  4. x5g7j9l3x

    x5g7j9l3x Junior Member

    Joined:
    Feb 20, 2009
    Messages:
    127
    Likes Received:
    1
    can you give code example please..??
     
  5. iPwnJ00

    iPwnJ00 Junior Member

    Joined:
    Mar 10, 2009
    Messages:
    132
    Likes Received:
    21
    Location:
    Melbourne, Australia
    From: http://www.javascriptkit.com/domref/elementmethods.shtml

    Code:
    click() -              Executes a click on a element as if the user   			manually clicked on it. In most browsers, click() only works on form  			INPUT elements that's non "submit" or "reset". It [B]can't[/B] be  			used to simulate a click on a link or form submit button.
    
     
  6. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    Code:
    document.getelementbyid("link_id").focus();document.getelementbyid("link_id").click();
    regards
    Cyklotrial