HTML and CSS Reference
In-Depth Information
Table G-20 Window and Frame Objects (continued)
Method
Function
moveTo(x,y)
The moveTo() method moves the window to the location specified by the
numeric values
open()
Opens a new window
prompt()
Displays a dialog box prompting a user to enter information
setTimeout()
Executes a function after a specified number of milliseconds has elapsed
Event
Triggered When
onblur
Window becomes inactive
onerror
Error occurs when the window loads
onfocus
Window becomes active
onload
Document is completely loaded in the window
onresize
Window is resized
onunload
Current document in the window is unloaded
The Window object open() method has many possible parameters. Table G-21
shows the features and values for the open() method.
Table G-21 open() Method
Feature
Description
Written As
directories
New window shows extra buttons
"directories=yes"
location
Includes address bar
“location 5 yes”
menubar
Includes menu bar
“menubar 5 yes”
resizeable
Allows user to resize
“resizeable 5 yes”
scrollbars
Includes scroll bars
“scrollbars 5 yes”
status
Includes status bar
“status 5 yes”
titlebar
Removes title bar
“titlebar 5 no”
toolbar
Includes toolbar
“toolbar 5 yes”
width
States width in pixels
“width 5 220”
height
States height in pixels
“height 5 450”
Number Object
The Number object gives support for special constants that may be platform specific
and exposes one conversion method. Table G-22 summarizes the Number object properties
and methods.
Table G-22 Number Object
Property
Description
MAX_VALUE
Maximum numeric value
MIN_VALUE
Minimum numeric value
NaN
Not a number value
NEGATIVE_INFINITY
Value for negative infinity
POSITIVE_INFINITY
Value for positive infinity
 
Search WWH ::




Custom Search