I'm using onBlur() to validate a field in a form.(following code, btw chkdup() is a Javascript function)
<form name="survey" method="post" action="Confirm.asp">
<input type="text" name="a" onBlur=chkdup()>
<input type="text" name="b">
<input type="submit" name="sub" value="sub">
Here is my question: how do i find out which one triggered the onBlur(), it can be by clicking on field b or by clicking on the submit button. Many Thanks.
<form name="survey" method="post" action="Confirm.asp">
<input type="text" name="a" onBlur=chkdup()>
<input type="text" name="b">
<input type="submit" name="sub" value="sub">
Here is my question: how do i find out which one triggered the onBlur(), it can be by clicking on field b or by clicking on the submit button. Many Thanks.