Form action : Action : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Action »

 

Form action

















<html>
    <head>
        <title>Submit Example</title>
    </head>
    <body>
        <form id="form1" method="post" action="javascript:alert('Submitted')">
            <!-- regular textbox -->
            <label for="txtName">Name:</label><br />
            <input type="text" id="txtName" name="txtName" /><br />
            
            <!-- custom submit button -->
            <input type="button" value="Submit Form" onclick="document.forms[0].submit()" />
      
        </form>
    </body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Action