Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to trigger an event in web page

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 120
    Comment on it

    Hello Reader's If you want to set the trigger to and event on the web page, Then using Javascript will be your best option. In this blog you will see how to set any event with its time in seconds.

    Lets consider an example here I'm triggerring the popup to just after 3 sec when the page will load

    <button onclick="setTimeout(myFunction, 3000)">Try it</button>
    
    <script>
    function myFunction() {
        alert('Hello');
    }
    </script>
    

    Now when this script will load, A popup will show just after 3 seconds

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: