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

Q492 Is there a way to have a window self focus but still allow the user to enter data into a form?

irt.org | Knowledge Base | JavaScript | Window | Q492 [ previous next ]

Q492 Is there a way to have a window self focus but still allow the user to enter data into a form?

Using:

<body onBlur="self.focus">

Causes, on some browsers, the window to trap you in that window even if you have another browser window that you want to use. Instead try:

<body onBlur="setTimeout('self.focus()',5000)">

Which allows upto 5 seconds for the user to enter data into a form field before the window regains the focus.

Feedback on 'Q492 Is there a way to have a window self focus but still allow the user to enter data into a 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.