html

when i click ok button of alert the form is getting submitted with out performing the other validations. i am using like this

<input type="image" src="./images/btn_passchange.gif" name="image" class="btn" tabindex="4" onclick="checkvalid()" alt="PWDCHG">

can anbody suggest me the solution

[314 byte] By [java@srinua] at [2007-11-27 1:49:55]
# 1

This isn't a Javascript forum. Java and Javascript are two entirely differently languages. You'll get better javascript info from a Javascript forum.

That said, I think that the onclick (or is it onsubmit? maybe they're the same) function has to return false to prevent the form from submitting. See what the return value of checkvalid is.

paulcwa at 2007-7-12 1:15:52 > top of Java-index,Java Essentials,New To Java...