onFocus Example
This web page has examples of using the onFocus properties of
the body tag and the window.focus() command.
- Click here - To
launch html file "A" (in a new window) which will launch html file
"B" (in a new window). If you try to switch focus to
"A", "A" will send you back to "B" using the
window.focus() function. Since "A" create "B"
(using window.open()), "A" saved a reference to "B".