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>