HTML and CSS Reference
In-Depth Information
Table G-19 Navigator Object (continued)
Property
Description
userAgent
User agent
Method
Function
javaEnabled()
Determines whether Java is enabled in the current browser
plugins.refresh()
Enables newly installed plugins on the client
savePreferences()
Saves all user preferences
Window and Frame Objects
The Window object represents a browser's window or an individual frame within
a window. Thus, every Frame object is a window object, and uses all the methods and
properties of the Window object. Table G-20 summarizes the Window and Frame
objects' properties, methods, and events. ( Note: Frames are not supported by HTML5 and
not recommended for users with accessibility needs; they should be avoided if possible.
Frames are included in the event that you encounter older Web pages.)
Table G-20 Window and Frame Objects
Property
Description
closed
Boolean value to determine if window has been closed
defaultStatus
Default text that is written to the status bar
document
Reference to the Document object
frames[]
Array listing the Frame objects in the window
history
Reference to the History object
length
Number of frames in a window
location
Reference to the Location object
name
Name of a window
navigator
Points to the Navigator object for the browser
opener
Window object that opens another window
parent
Parent frame that contains the current frame
screen
Screen information where the browser is running
self
Self-reference to the Window object
status
Temporary text that is written to the status bar
top
Topmost Window object that contains the current frame
window
Self-reference to the Window object
Method
Function
alert()
Displays a message dialog box with an OK button
blur()
Removes the focus from the window
clearTimeout()
Cancels a set timeout
close()
Closes the window
confirm(
Displays a confirmation dialog box with OK and Cancel buttons
focus()
Makes the Window object the active window
moveBy(x,y)
The moveBy() method moves the window horizontally or vertically by the
number of pixels; positive numbers move right and down, negative move
in the opposite direction
Search WWH ::




Custom Search