HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
focus()
Gives the focus to the selection list
handleEvent( event )
Invokes the event handler for the specified event
remove(index)
Removes the option at index index from the list of options
Storage
Client-side storage object of key-value pairs
Properties
length
The number of key-value pairs
Methods
clear()
Removes all key-value pairs
getItem( key )
Returns the value associated with key
removeItem( key )
Removes the key item
setItem( key , value )
Adds the key - value pair to the storage object
StorageItem
An Event object triggered when key-value pairs are removed or stored in a
client-side storage object
Properties
key
The key that was set or deleted
newValue
The new value of the specified key
oldValue
The old value of the specified key
storageArea
The storage area in the storage object that was changed during the event
url
The URL of the document whose script changed the storage area
String
A text string object created implicitly or explicitly using the constructor
new String( string )
where string is the value stored in the text string
Properties
length
The number of characters in the string
Methods
anchor( name )
Converts the string into a hypertext link anchor with the name name
big()
Displays the string using the big element
blink()
Displays the string using the blink element
bold()
Displays the string using the b element
charAt( index )
Returns the character in the string at the location specified by index
charCodeAt(position)
Returns an unsigned integer of the Unicode value of the haracter at index position
concat( string2 )
Concatenates the string with the second text string string2
fixed()
Displays the string using the tt element
fontcolor( color )
Sets the color attribute of the string
fontsize( value )
Sets the size attribute of the string
indexOf( string, start )
Searches the string, beginning at the start character, and returns the index value of
the first occurrence of the string string
italics()
Displays the string using the i element
lastIndexOf( string, start )
Searches the string, beginning at the start character, and locates the index value of
the last occurrence of the string string
link( href )
Converts the string into a hypertext link pointing to the URL href
localeCompare( target )
Compares the string with the text in target using locale-specific ordering
match( expression )
Returns an array containing the matches based on the regular expression
expression
Search WWH ::




Custom Search