HTML and CSS Reference
In-Depth Information
Global Functions
The following table descriptions built-in JavaScript functions that can be applied globally
to various objects and variables.
Function
Description
decodeURI()
Decodes a URI encoded with the encodeURI() function
decodeURIComponent()
Decodes a URI component encoded with the encodeURI-
Component() function
encodeURI()
Encodes a URI by escaping whitespace and unprintable
characters
encodeURIComponent()
Encodes a URI component by escaping whitespace and
unprintable characters
escape()
Encodes a text string by replacing whitespace and unprint-
able characters with escape codes
eval()
Evaluates a string of JavaScript code and returns the result
isFinite()
Tests whether a value is a finite number
isNAN()
Tests whether a value is not a number
parseFloat()
Extracts a whole number from a text string
parseInt()
Extracts an integer value from a text string
unescape()
Decodes a text string encoded with the escape() function
Objects, Properties, and Methods
The following table lists many of the important built-in JavaScript objects and objects from
the HTML document object model. Each JavaScript object is followed by any properties or
methods associated with it.
JavaScript Element
Description
Anchor
An anchor in the document created using the <a> tag with the name attribute
Properties
accessKey
The hotkey that gives the element focus
charset
The character set of the linked document
coords
The coordinates of the object, used with the shape attribute
hreflang
The language code of the linked resource
name
The name of the anchor
nameProp
The string holding the filename portion of the URL in the href
shape
The string defining the shape of the object
text
The anchor text
type
The MIME type of the media type for the link target
Methods
blur( )
Removes focus from the element
handleEvent ( event )
Causes event to be processed
focus( )
Gives the element focus
Search WWH ::




Custom Search