Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 766737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:05:48+00:00 2026-05-14T17:05:48+00:00

How do I javascript automatically click on a hyperlink (id is link_page) after 5

  • 0

How do I javascript automatically click on a hyperlink (id is link_page) after 5 minutes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T17:05:49+00:00Added an answer on May 14, 2026 at 5:05 pm

    If you want to trigger the onclick event handler of that link, it could work like this:

    <head>
        <script type="text/javascript">
        setTimeout(function() {
            document.getElementById('link_page').onclick();
        }, 5 * 60 * 1000);
        </script>
    </head>
    ...
    <body>
        <a id="link_page" onclick="alert('test')">Test</a>
    </body>
    

    If you want to change to the location of the link after 5 minutes, you could try:

    <head>
        <script type="text/javascript">
        setTimeout(function() {
            var linkUrl = document.getElementById('link_page').href;
            location.href = linkUrl;
        }, 5 * 60 * 1000);
        </script>
    </head>
    ...
    <body>
        <a id="link_page" href="http://www.google.de/">Test</a>
    </body>
    

    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 on setTimeout(): http://www.w3schools.com/js/js_timing.asp

    Mind: I tested these on OSX / Firefox, so test these on PC, too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Instead of automatically following JavaScript redirects, can I force HtmlUnit to return the URL
how do I automatically execute javascript? I know of <body onLoad=> , but I
JavaScript: $('.addTable').live('click', function () { var appendTxt = <table id='tab1'> <tr><td><input type='text' name='input1' /></td><td><input
is there a way that I could automatically format the input box via Javascript
I have a link where I need to be click it automatically using jquery
I want to be able to submit a form after a page loads automatically
I would like a javascript bookmarklet that will click on the facebook like button
How to automatically replace url in browser address bar with JavaScript from   company.com/en/ services/
I am trying to automatically click on a button on a webpage. An example
I'd like to click on an embedded youtube video using javascript (so the video

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.