You are here: irt.org | FAQ | JavaScript | Form | Q1288 [ previous next ]
Try using the onBlur event handler to check the current value of the form with a value captured using the onFocus event handler for the form field:
<form> <input type="text" onFocus="window.temp=this.value" onBlur="if (window.temp != this.value) alert('Changed')" onChange="alert('Changed')"> </form>
However, if used normally both events will trigger the alert.