Form.action : Form Object : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Form Object »

 

Form.action









The action property represents the ACTION attribute of the HTML


tag.

It is typically the URL to which the form is being submitted.












<html>
    <head>
    <title> Using the action property of the Form object</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function getAction(){
         var actionValue = document.form1.action;
         document.form1.msg.value = "Your form was submitted to the following URL:n " + actionValue;
    }
    -->
    </script>
    <form name="form1" action="http://www.navioo.com/cgi-bin/process.pl">
    Enter your street address:
    <input type="text" name="address" size="40">
    <br><br>
    <input type="button" value="Submit"onClick=getAction()>
    <br><br><br>
    <textarea name="msg" rows="5" cols="62"></textarea>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Form Object