HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
name
The name of the reset button
type
The type value of the reset button
value
The value of the reset button
Methods
blur()
Removes the focus from the reset button
click()
Clicks the reset button
focus()
Gives the focus to the reset button
handleEvent( event )
Invokes the event handler for the specified event
screenƒ
An object representing the user's screen
Properties
availHeight
The height of the screen, minus toolbars or any other permanent objects
availWidth
The width of the screen, minus toolbars or any other permanent objects
colorDepth
The number of possible colors in the screen
height
The height of the screen
pixelDepth
The number of bits per pixel in the screen
width
The width of the screen
Scriptƒ
A script element within the document
Properties
async
A Boolean indicating whether the script has the async attribute
charset
The character set used to encode the script
defer
A Boolean indicating whether script execution may be deferred
src
The URL of the external script
text
The contents of the script
type
The value of the type attribute
Selectƒ
A selection list in a Web form
Properties
disabled
A Boolean indicating whether the element is disabled
form
The name of the form containing the selection list
length
The number of options in the selection list
multiple
A Boolean indicating whether multiple options may be selected
name
The name of the selection list
options
An array of options within the selection list; see the options object for more infor-
mation on working with individual selection list options
selectedIndex
The index value of the selected option from the selection list
selectedOptions
An array of option elements selected in the selection list
size
The number of options that are visible at one time
tabIndex
A numeric value that indicates the tab order for the object
type
The type value of the selection list
value
The value of the currently selected option
Methods
add(element, before)
Adds the option referenced by the element to the list of options before the
option referenced by before ; if before is null, it is added at the end
blur()
Removes the focus from the selection list
Search WWH ::




Custom Search