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.