i can't seem to find the problem with this code:
i think it has to do with the arguments but i am not sure.
can anyone help me?
| Code: |
| <html>
<body> <script type="text/javascript"> function checkit(pass, inputvalue) { alert("work"); if (pass=="password") { alert('correct password'); } } </script> <form name="john"> <input type="text" name="lala"> <input type="button" value="click" onclick="checkit(document.john.lala.value, "did you enter the right password?");" </body> </html> |
i think it has to do with the arguments but i am not sure.
can anyone help me?
