Kane
CODE:
<script>
function checkReg(){
if(document.forms['reg'].psw1.value==document.forms['reg'].psw2.value){
document.forms['reg'].submit();
}else {
alert("Нифига");
return false;
}
}
</script>
<form name='reg' onsubmit='checkReg();' action='page.html'>
<input type='password' name='psw1'>
<input type='password' name='psw2'>
<input type=button value='ok' onclick='checkReg();'>
</form>
Типа того. |