<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 /><br /> <input type="button" onclick="formMethod()" value="Show method"> </form> </body> </html>
Edit the text above, and click on the button to see the result.
Copyright © 2007-2008, Www.JavaBasics.We.Bs All rights reserved.