javascript error~~~~~~~~~~~~~~~~帮忙~~~ <SCRIPT language=javascript type="text/javascript">
function samepass(passform){
if (passform.password.value!=passform.confirmpassword.value){
return false
}
}
function submitForm(form){
if(!(samepass(form)))
{
alert("the two passwords do not match")
passform.password.focus()
passform.password.select()
}
}
</script>
假如2次输入的密码一样,就不跳出那个alert窗口,
可是不管我输一样的,还是不一样的2个密码
都要跳出那个窗口,请问那里错了
谢谢~~~
[羊肉泡馍 (2-11 16:07, Long long ago)]
[ 传统版 |
sForum ][登录后回复]1楼
maybe u can change ur != toif (!blah.equals(balh)) {
...
javascript follows the same grammar rule as Java[bigfox (2-11 16:47, Long long ago)]
[ 传统版 |
sForum ][登录后回复]2楼