Hi all,
I want to swap a form value using javascript.
I can see taht this isn't working...I don't use javascript alot so I'm not too sure what I am doing.
thanks
HTML Code:<html> <head> <title>AntiSpam</title> <script language="JavaScript" type="text/javascript"> var antispam = 'false'; </script> </head> <body onLoad="main();" onclick="antispam = 'true'" onkeyup="antispam = 'true'" > <form method="GET" action="antispam.php"> <input type="hidden" name="antispam" id="antispam" value="false" /> <input type="submit"> </form> <script language="JavaScript" type="text/javascript"> document.write(antispam); </script> <br> </body> </html>






Bookmarks