<html> <body> <script language="JavaScript"> function function1() { document.all.myLink.Methods = "post"; } </script> <a id="myLink" href="http://www.java2java.com/">java2s Home Page</a> <input type="button" value='Change mode to "post"' onclick="function1();"> </body> </html>