Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • onsubmit javascript Event

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 114
    Comment on it

    After submitting the information,user clicks the submit button.

    <!DOCTYPE html>
    <html>
    <head>
    <script>
    function confirmInput() {
        fname = document.forms[0].fname.value;
        alert("Hiii " + fname + "! You will now be redirected to www.google.com");
    }
    </script>
    </head>
    
    <body>
    <form onsubmit="confirmInput()" action="http://www.google.com/">
    Enter your name: <input id="fname" type="text" size="20">
    <input type="submit">
    </form>
    </body>
    
    </html>
    

 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: