|
|
Q793 Is there some way I can change the focus to the original window, if the window still exists?
irt.org | Knowledge Base | JavaScript | Window | Q793 [ previous next ] Q793 Is there some way I can change the focus to the original window, if the window still exists?In newer browsers (JavaScript 1.1) you can check that a window is still open using:
You can therefore make you code more robust with:
The second definition of focusOpener() overrides the first in browsers that support JavaScript 1.1 or better, for other browsers the more unreliable approach is used. |
-- div -->
|