HTML and CSS Reference
Figure 13.6 When focus is on the left frame, it turns pink. When focus leaves the left
frame, it turns yellow. Notice the mouse pointer is in the right frame. That's where
the focus is. Check the status bar.
The focus() and blur() Methods. The focus() and blur() methods behave exactly
the same as their like-named events. These methods are applied to an object, such as a
method is applied to an object, it will cause that object to be in focus and when the blur()
method is applied to an object, it will lose its input focus.
<head><title>The focus and blur methods</title>
winObj.moveTo(0,0); // Move to left corner of screen
// New window gets the focus
// Close the new window
<h2>Summer Scene from the Old Country</h2>