Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q965 Is there anyway to prompt a user with a message if they tab to a particular field, but do not make any changes?

You are here: irt.org | FAQ | JavaScript | Form | 11 | Q965 [ previous next ]

You could try:

<script language="JavaScript"><!--
var myFormValue = '';
//--></script>

<form>
<input type="text" onFocus="myFormValue=this.value" onBlur="if (myFormValue==this.value) alert('no change')">
</form>

©2018 Martin Webb