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

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

You are here: irt.org | FAQ | JavaScript | Window | Q492 [ previous next ]

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

©2018 Martin Webb