HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
naturalWidth
The intrinsic width of the image
src
The URL of the image
style
A reference to the inline Style object for the element
useMap
A URL to use as a client-side image map
vspace
The vertical space around the image in pixels
width
The width of the image in pixels
Methods
handleEvent( event )
Invokes the event handler for the specified event
ImageData
An array of pixel data from a canvas object
Properties
data
An array of image bytes
height
The number of rows of image data
width
The number of pixels per row of data
implementationÆ’
Information about the DOM technologies the browser supports
Methods
hasFeature(feature [, version ])
A Boolean indicating if the browser supports feature at the DOM level given
by version
Input
A form input control
Properties
accept
A list of MIME types that specify the types of files that the control can accept
autocomplete
A Boolean indicating whether the browser can prefill the input control with a value
from a previous session
checked
A Boolean indicating whether the control is checked
defaultChecked
A Boolean indicating whether the control is checked by default
defaultValue
The default value of the input field
files
An array of file objects that the user selected
formAction
The value of the action property for the form
formEnctype
The character encoding for the form data
formMethod
The method associated with the form
formNoValidate
A Boolean indicating if the form data does not need to be validated
formTarget
The target of the form
indeterminate
A Boolean indicating if an input checkbox is neither checked or unchecked
list
A data list containing option values associated with the input control
max
The maximum value for the field
maxLength
The maximum length for the field
min
The minimum value for the field
multiple
A Boolean indicating whether the input control allows for multiple values
pattern
The text of a regular expression pattern associated with the input control
placeholder
The placeholder text for the input control
readOnly
A Boolean indicating whether the input control is read-only
required
A Boolean indicating whether the input value is required
selectedOption
The selected option when a data list is used
selectionEnd
The index of the first input character after the selected text
selectionStart
The index of the first selected character in a textarea control
Search WWH ::




Custom Search