Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: auto click

  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question auto click

    anyone can help me??

    Code:
    var milisec=0
    document.d.d2.value='0'
    
    function display(){
      if (milisec>=9){
         location.replace('javascript:chresp(1,0)');   
    //   i want to doing auto click to this link -> javascript:chresp(1,0)
      }
      else
        milisec+=1
        document.d.d2.value=milisec
        setTimeout("display()",1000)
      }
    display()

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Not possible for security reasons. If it were possible the internet would be unuseable. You can of course redirect to another site if the user himself clicks on a button.

    It is your responsibility to die() if necessary….. - PHP Manual

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmm,.
    ok then,.
    maybe i ll try another script.,
    that more saver and more useable.,


  •  

    Posting Permissions

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