HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
disabled
A Boolean value indicating whether the style sheet is disabled
href
The URL of the style sheet
media
A list of media to which the style sheet is applied
ownerNode
The document that owns the style sheet
ownerRule
The CSSRule object that causes the style sheet to be included
parentStyle
The parent style sheet of the current sheet
title
The title of the style sheet
type
The MIME type of the style sheet
Methods
deleteRule( index )
Deletes the style rule with the index number index
insertRule( rule , index )
Inserts a style rule with the text rule at the index number index
DataTransfer
An API used for transferring data using drag and drop
Properties
dropEffect
The type of data transfer represent by the object
effectAllowed
The combination of copy, move, and link transfers allowed for the operation
files
An array object of data files
types
An array object of MIME types
Methods
addElement( element )
Uses element when creating the dragging effect
getData( format )
Returns the transferred data as format
setData( format , data )
Sets format as the MIME type for data to be transferred
setDragImage( image , x , y )
Specifies image as the image to be displayed with the mouse pointer, offset x units
horizontally and y units vertically
Date
A Date object created using one of the following object constructors:
new Date()
new Date( msec )
new Date( datestring )
new Date( year , month , day , hours , minutes , seconds , msec )
where msec is the date value in milliseconds , datestring is the date
expressed as a text string, and year through msec are the date values for
years through milliseconds. If no parameter value is specified, the current
date and time is used.
Methods
getDate()
Returns the day of the month, from 1 to 31
getDay()
Returns the day of the week, from 0 to 6 (Sunday = 0, Monday = 1, etc.)
getFullYear()
Returns the year portion of the date in four-digit format
getHours()
Returns the hour in military time, from 0 to 23
getMilliseconds()
Returns the number of milliseconds
getMinutes()
Returns the minute, from 0 to 59
getMonth()
Returns the value of the month, from 0 to 11 (January = 0, February = 1, etc.)
getSeconds()
Returns the seconds
getTime()
Returns the date as an integer representing the number of milliseconds since
December 31, 1969, at 18:00:00
getTimezoneOffset()
Returns the difference between the local time and Greenwich Mean Time in minutes
getYear()
Deprecated. Returns the number of years since 1900; for example, 1996 is repre-
sented by '96'—this value method is inconsistently applied after the year 1999
Search WWH ::




Custom Search