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

Need auto click script

Discussion in 'Hire a Freelancer' started by urbanbackground, Oct 10, 2012.

  1. urbanbackground

    urbanbackground Registered Member

    Joined:
    Sep 25, 2010
    Messages:
    61
    Likes Received:
    6
    Looking for someone who knows how to create an autoclick on a page load. I see html codes to do it, but I don't know how to autoclick the specific button on the page. Please respond or PM me..
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    Thread moved to the proper place :)
     
  3. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    525
    Likes Received:
    311
    Gender:
    Male
    I am not sure this is what you want but is one way of doing it (jQuery):
    Code:
    window.onload = function() {
      
      $("#target").click(function() {
        // DO whatever you want
      });
      
      // Trigger on load
      $("#target").click();
    };
    "#target" is the element ID for example:

    Code:
    <input type="submit" name="Submit" id="target">
    Simple javascript onload+click, use it on the body of the page:
    Code:
    onLoad="document.getElementById('target').click();"
     
    Last edited: Oct 10, 2012
  4. masush300

    masush300 Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 16, 2012
    Messages:
    1,019
    Likes Received:
    333
    Occupation:
    Coding
    Location:
    Imagine Dragons
    Home Page:
    THis is Easy
    i donot think u just want a Click
    Pming u