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

Q1322 How can I ensure that the change event it tripped for an amended form field, even if the user changes the focus to another frame?

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

Q1322 How can I ensure that the change event it tripped for an amended form field, even if the user changes the focus to another frame?

Use the onFocus event handler in the other frame to set the focus back to the original frame. This will then cause the chnage event to fire for the amended form field:

Original frame:

<form>
<input type="text" onChange="alert('changed')">
</form>

In the other frame:

<body onFocus="parent.originalFrameName.focus()">

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.