Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Form 11 | Q965 [ previous next ]

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 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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.