Return the method used when sending form data : Form Submit : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Form Submit »

 

Return the method used when sending form data



<html>

<head>
<script type="text/javascript">
function formMethod(){
    var x=document.forms.myForm
    alert(x.method)
}
</script>
</head>

<body>
    <form name="myForm" method="post">
        Name: <input type="text" size="20">
    <br>
    <input type="button" onclick="formMethod()" value="Show method">
    </form>
</body>

</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Form Submit