Frame.blur()
JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax
frame.blur()
Description
The blur() method of the Frame object removes focus from the frame.
Example
Listing 7.269 uses the blur() method to remove focus from the frame.
Listing 7.269 Example of blur() Method
<html> <title> Example of blur method of Frame object</title> <script language="JavaScript"> <!-- Hide function removeFocus(){ document.upper.blur() } // End Hide ---> </script> <frameset rows="100,*"> <frame src="top.html" name=upper onDblClick=removeFocus()> <frame src="bottom.html" name=bottom scrolling=yes> </frameset> </html> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.