How do I javascript automatically click on a hyperlink (id is link_page) after 5 minutes?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to trigger the onclick event handler of that link, it could work like this:
If you want to change to the location of the link after 5 minutes, you could try:
The key function in both methods is the
setTimeout()function, which takes a callback function and a timespan in milliseconds after which the callback function is executed. More onsetTimeout(): http://www.w3schools.com/js/js_timing.aspMind: I tested these on OSX / Firefox, so test these on PC, too.