August 1999
Intermediate to advanced
1488 pages
72h 53m
English
frame.focus()
The focus() method of the Frame object is used to set the focus to a specific frame.
Listing 7.273 shows the syntax for using the focus() method. When the document is loaded, the focus is automatically set to the bottom frame.
<html> <title> Example of focus method of Frame object</title> <script> <!-- Hide //set initial focus to bottom frame document.bottom.focus; // End Hide ---> </script> <frameset rows="80, *"> <frame name=top src=top.html> <frame name=bottom src=bottom.html> </frameset> </html> |
Read now
Unlock full access