HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
size
The width of the input control in characters
step
The size of step values in the input control
valueAsDate
The element's value as a Date object
valueAsNumber
The element's value as a numeric value
Methods
select()
Selects all of the text in the input control
setSelectionRange( start , end )
Selects text from the input control starting with the character at start and ending
with the character at end
stepDown( n )
Decreases the current value in steps of n
stepUp( n )
Increases the current value in steps of n
JSON
An object written in JavaScript Object Notation
Methods
parse( string )
Parses JSON-formatted text string string
stringify( object )
Converts object to a JSON string
Labelƒ
A form field label in the document
Properties
form
The form that encloses the label
Legendƒ
A fieldset legend in a Web form
Properties
align
The alignment of the element, for example, “right”
form
The form in which the element is enclosed
Linkƒ
A link within an HTML document
Properties
charset
The character set of the linked document
coords
The coordinates of the object
disabled
A Boolean indicating whether the element is disabled
hash
The anchor name from the link's URL
host
The host from the link's URL
hostname
The hostname from the link's URL
href
The link's URL
hreflang
The language code of the linked resource
media
The media the linked document is intended for
nameProp
The filename portion of the URL in the href
pathname
The path portion of the link's URL
port
The port number of the link's URL
protocol
The protocol used with the link's URL
search
The search portion of the link's URL
target
The target window of the hyperlinks
text
The text used to create the link
type
The MIME type of the media type for the link target
Methods
handleEvent( event )
Invokes the event handler for the specified event
Search WWH ::




Custom Search