Hi, What i'm trying to do is pretty simple. I want to detect if the value of a field in a form called "check" and if the value is "1" return the user to a different page. i also want it so if the value is anything else the user is returned to the homepage. Here's what i have so far:
Thanks!HTML Code:<html> <body> <form name="check" > <input type="hidden" name="check" id="check" value="0" /> </form> <script type="text/javascript"> document.getElementsByTagName("check") if (document.getElementById("check").value = "1") { document.write("Good!"); } else { document.write("bad"); } </script> </body> </html>


Reply With Quote
Bookmarks