Bridge.Html5
The state of the XMLHttpRequest
open() has not been called yet.
send() has not been called yet.
send() has been called, and headers and status are available.
Downloading; responseText holds partial data.
The operation is complete.
XMLHttpRequest Level 2 adds support for the new FormData interface. FormData objects provide a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest send() method.
It uses the same format a form would use if the encoding type were set to "multipart/form-data".
HTML Form Element to send for keys/values. It will also encode file input content.
Appends a key/value pair to the FormData object.
The name of the field whose data is contained in value.
The field's value. Can be a Blob, File, or a string, if neither, the value is converted to a string.
Appends a key/value pair to the FormData object.
The name of the field whose data is contained in value.
The field's value. Can be a Blob, File, or a string, if neither, the value is converted to a string.
Appends a key/value pair to the FormData object.
The name of the field whose data is contained in value.
The field's value. Can be a Blob, File, or a string, if neither, the value is converted to a string.
Appends a key/value pair to the FormData object.
The name of the field whose data is contained in value.
The field's value. Can be a Blob, File, or a string, if neither, the value is converted to a string.
The filename reported to the server, when a Blob or File is passed as second paramter. The default filename for Blob objects is "blob".
Appends a key/value pair to the FormData object.
The name of the field whose data is contained in value.
The field's value. Can be a Blob, File, or a string, if neither, the value is converted to a string.
The filename reported to the server, when a Blob or File is passed as second paramter. The default filename for Blob objects is "blob".
XMLHttpRequest is a JavaScript object that was designed by Microsoft and adopted by Mozilla, Apple, and Google. It's now being standardized in the W3C. It provides an easy way to retrieve data from a URL without having to do a full page refresh. A Web page can update just a part of the page without disrupting what the user is doing. XMLHttpRequest is used heavily in AJAX programming.
Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML, and it supports protocols other than HTTP (including file and ftp).
A JavaScript function object that is called whenever the readyState attribute changes. The callback is called from the user interface thread.
The response entity body according to responseType, as an ArrayBuffer, Blob, Document, JavaScript object (for "json"), or string. This is null if the request is not complete or was not successful.
The response to the request as text, or null if the request was unsuccessful or has not yet been sent.
The status of the response to the request. This is the HTTP result code (for example, status is 200 for a successful request).
The response string returned by the HTTP server. Unlike status, this includes the entire text of the response message ("200 OK", for example).
The number of milliseconds a request can take before automatically being terminated. A value of 0 (which is the default) means there is no timeout.
Indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies or authorization headers. The default is false.
Aborts the request if it has already been sent.
Returns all the response headers as a string, or null if no response has been received. Note: For multipart requests, this returns the headers from the current part of the request, not from the original channel.
Returns the string containing the text of the specified header, or null if either the response has not yet been received or the header doesn't exist in the response.
Initializes a request. This method is to be used from JavaScript code; to initialize a request from native code, use openRequest()instead.
The HTTP method to use, such as "GET", "POST", "PUT", "DELETE", etc. Ignored for non-HTTP(S) URLs.
The URL to send the request to.
Initializes a request. This method is to be used from JavaScript code; to initialize a request from native code, use openRequest()instead.
The HTTP method to use, such as "GET", "POST", "PUT", "DELETE", etc. Ignored for non-HTTP(S) URLs.
The URL to send the request to.
An optional boolean parameter, defaulting to true, indicating whether or not to perform the operation asynchronously. If this value is false, the send()method does not return until the response is received. If true, notification of a completed transaction is provided using event listeners. This must be true if the multipart attribute is true, or an exception will be thrown.
Initializes a request. This method is to be used from JavaScript code; to initialize a request from native code, use openRequest()instead.
The HTTP method to use, such as "GET", "POST", "PUT", "DELETE", etc. Ignored for non-HTTP(S) URLs.
The URL to send the request to.
An optional boolean parameter, defaulting to true, indicating whether or not to perform the operation asynchronously. If this value is false, the send()method does not return until the response is received. If true, notification of a completed transaction is provided using event listeners. This must be true if the multipart attribute is true, or an exception will be thrown.
The optional user name to use for authentication purposes; by default, this is an empty string.
Initializes a request. This method is to be used from JavaScript code; to initialize a request from native code, use openRequest()instead.
The HTTP method to use, such as "GET", "POST", "PUT", "DELETE", etc. Ignored for non-HTTP(S) URLs.
The URL to send the request to.
An optional boolean parameter, defaulting to true, indicating whether or not to perform the operation asynchronously. If this value is false, the send()method does not return until the response is received. If true, notification of a completed transaction is provided using event listeners. This must be true if the multipart attribute is true, or an exception will be thrown.
The optional user name to use for authentication purposes; by default, this is an empty string.
The optional password to use for authentication purposes; by default, this is an empty string.
Overrides the MIME type returned by the server. This may be used, for example, to force a stream to be treated and parsed as text/xml, even if the server does not report it as such. This method must be called before send().
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Sets the value of an HTTP request header. You must call setRequestHeader() after open(), but before send(). If this method is called several times with the same header, the values are merged into one single request header.
The name of the header whose value is to be set.
The value to set as the body of the header.
The state of the request
The upload process can be tracked by adding an event listener to upload.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived.
Is an enumerated value that defines the response type. For possible values refer to
enum Bridge.Html5.XMLHttpRequestResponseType.
The response to the request as a DOM Document object, or null if the request was unsuccessful, has not yet been sent, or cannot be parsed as XML or HTML. The response is parsed as if it were a text/xml stream. When the responseType is set to "document" and the request has been made asynchronously, the response is parsed as a text/html stream.
XMLHttpRequestEventTarget is the interface that describes the event handlers you can implement in an object that will handle events for an XMLHttpRequest.
The function to call when a request is aborted.
The function to call when a request encounters an error.
The function to call when an HTTP request returns after successfully loading content.
A function that gets called when the HTTP request first begins loading data.
A function that is called periodically with information about the progress of the request.
A function that is called if the event times out; this only happens if a timeout has been previously established by setting the value of the XMLHttpRequest object's timeout attribute.
A function that is called when the load is completed, even if the request failed.
False to hide location bar
The CaretPosition interface represents the caret postion, an indicator for the text insertion point. You can get a CaretPosition using the document.caretPositionFromPoint method.
Returns a Node containing the found node at the caret's position.
Returns a long representing the character offset in the caret position node.
Y-coordinate, relative to the viewport origin, of the bottom of the rectangle box. Read only.
X-coordinate, relative to the viewport origin, of the left of the rectangle box. Read only.
X-coordinate, relative to the viewport origin, of the right of the rectangle box. Read only.
Y-coordinate, relative to the viewport origin, of the top of the rectangle box. Read only.
Width of the rectangle box (This is identical to right minus left). Read only.
Height of the rectangle box (This is identical to bottom minus top). Read only.
collection of rectangles that indicate the bounding rectangles for each box in a client.
Returns an item in the list by its index, or null if out-of-bounds.
Returns an item in the list by its index, or null if out-of-bounds. Equivalent to nodeList[idx].
The number of items in the ClientRectList.
mode is the string "BackCompat" for Quirks mode or "CSS1Compat" for Strict mode.
JavaScript Date instances inherit from Date.prototype. You can modify the constructor's prototype object to affect properties and methods inherited by JavaScript Date instances.
The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
Because now() is a static method of Date, you always use it as Date.now().
A Number representing the milliseconds elapsed since the UNIX epoch.
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
UTC() takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.
You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century(1900 + year); for example, if you specify 95, the year 1995 is used.
A year after 1900.
An integer between 0 and 11 representing the month.
A number representing the number of milliseconds in the given Date object since January 1, 1970, 00:00:00, universal time.
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
UTC() takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.
You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century(1900 + year); for example, if you specify 95, the year 1995 is used.
A year after 1900.
An integer between 0 and 11 representing the month.
An integer between 1 and 31 representing the day of the month.
A number representing the number of milliseconds in the given Date object since January 1, 1970, 00:00:00, universal time.
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
UTC() takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.
You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century(1900 + year); for example, if you specify 95, the year 1995 is used.
A year after 1900.
An integer between 0 and 11 representing the month.
An integer between 1 and 31 representing the day of the month.
An integer between 0 and 23 representing the hours.
A number representing the number of milliseconds in the given Date object since January 1, 1970, 00:00:00, universal time.
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
UTC() takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.
You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century(1900 + year); for example, if you specify 95, the year 1995 is used.
A year after 1900.
An integer between 0 and 11 representing the month.
An integer between 1 and 31 representing the day of the month.
An integer between 0 and 23 representing the hours.
An integer between 0 and 59 representing the minutes.
A number representing the number of milliseconds in the given Date object since January 1, 1970, 00:00:00, universal time.
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
UTC() takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.
You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century(1900 + year); for example, if you specify 95, the year 1995 is used.
A year after 1900.
An integer between 0 and 11 representing the month.
An integer between 1 and 31 representing the day of the month.
An integer between 0 and 23 representing the hours.
An integer between 0 and 59 representing the minutes.
An integer between 0 and 59 representing the seconds.
A number representing the number of milliseconds in the given Date object since January 1, 1970, 00:00:00, universal time.
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
UTC() takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the time you specified.
You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is specified, the method converts the year to a year in the 20th century(1900 + year); for example, if you specify 95, the year 1995 is used.
A year after 1900.
An integer between 0 and 11 representing the month.
An integer between 1 and 31 representing the day of the month.
An integer between 0 and 23 representing the hours.
An integer between 0 and 59 representing the minutes.
An integer between 0 and 59 representing the seconds.
An integer between 0 and 999 representing the milliseconds.
A number representing the number of milliseconds in the given Date object since January 1, 1970, 00:00:00, universal time.
The Date.parse() method parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC or NaN if the string is unrecognised or, in some cases, contains illegal date values (e.g. 2015-02-31).
A string representing an RFC2822 or ISO 8601 date (other formats may be used, but results may be unexpected).
A number representing the milliseconds elapsed since January 1, 1970, 00:00:00 UTC and the date obtained by parsing the given string representation of a date. If the argument doesn't represent a valid date, NaN is returned.
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Double value representing the number of milliseconds since 1 January 1970 00:00:00 UTC (Unix Epoch).
The numberof milliseconds since 1 January 1970 00:00:00 UTC (Unix Epoch)
String value representing a date. The string should be in a format recognized by the Date.parse() method (IETF-compliant RFC 2822 timestamps and also a version of ISO8601).
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
Integer value representing the month, beginning with 0 for January to 11 for December.
Integer value representing the day of the month.
Integer value representing the hour of the day.
Integer value representing the minute segment of a time.
Integer value representing the second segment of a time.
Integer value representing the millisecond segment of a time.
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
Integer value representing the month, beginning with 0 for January to 11 for December.
Integer value representing the day of the month.
Integer value representing the hour of the day.
Integer value representing the minute segment of a time.
Integer value representing the second segment of a time.
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
Integer value representing the month, beginning with 0 for January to 11 for December.
Integer value representing the day of the month.
Integer value representing the hour of the day.
Integer value representing the minute segment of a time.
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
Integer value representing the month, beginning with 0 for January to 11 for December.
Integer value representing the day of the month.
Integer value representing the hour of the day.
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
Integer value representing the month, beginning with 0 for January to 11 for December.
Integer value representing the day of the month.
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.
Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
Integer value representing the month, beginning with 0 for January to 11 for December.
The toDateString() method returns the date portion of a Date object in human readable form in American English.
A string representing the date portion of the given Date object in human readable form in American English.
The toTimeString() method returns the time portion of a Date object in human readable form in American English.
A string representing the time portion of the given date in human readable form in American English.
The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
A string representing the date portion of the given Date instance according to language-specific conventions.
The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
A string with a BCP 47 language tag, or an array of such strings.
A string representing the date portion of the given Date instance according to language-specific conventions.
The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
A string with a BCP 47 language tag, or an array of such strings.
An object with some or all of the following properties:
A string representing the date portion of the given Date instance according to language-specific conventions.
The toLocaleTimeString() method returns a string with a language sensitive representation of the time portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
A string representing the time portion of the given Date instance according to language-specific conventions.
The toLocaleTimeString() method returns a string with a language sensitive representation of the time portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
A string with a BCP 47 language tag, or an array of such strings.
A string representing the time portion of the given Date instance according to language-specific conventions.
The toLocaleTimeString() method returns a string with a language sensitive representation of the time portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
A string with a BCP 47 language tag, or an array of such strings.
An object with some or all of the following properties:
A string representing the time portion of the given Date instance according to language-specific conventions.
An object with some or all of the following properties:
The default value for each date-time component property is undefined, but if the weekday, year, month, day properties are all undefined, then year, month, and day are assumed to be "numeric".
The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page.
The time zone to use. The only value implementations must recognize is "UTC"; the default is the runtime's default time zone. Implementations may also recognize the time zone names of the IANA time zone database, such as "Asia/Shanghai", "Asia/Kolkata", "America/New_York".
Whether to use 12-hour time (as opposed to 24-hour time). Possible values are true and false; the default is locale dependent.
The format matching algorithm to use. Possible values are "basic" and "best fit"; the default is "best fit". See the following paragraphs for information about the use of this property.
The representation of the weekday. Possible values are "narrow", "short", "long".
The representation of the era. Possible values are "narrow", "short", "long".
The representation of the year. Possible values are "numeric", "2-digit".
The representation of the month. Possible values are "numeric", "2-digit", "narrow", "short", "long".
The representation of the day. Possible values are "numeric", "2-digit".
The representation of the hour. Possible values are "numeric", "2-digit".
The representation of the minute. Possible values are "numeric", "2-digit".
The representation of the second. Possible values are "numeric", "2-digit".
The representation of the time zone name. Possible values are "short", "long".
The valueOf() method returns the primitive value of a Date object.
The valueOf() method returns the primitive value of a Date object as a number data type, the number of milliseconds since midnight 01 January, 1970 UTC.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the given date.
The toISOString() method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectively). The timezone is always zero UTC offset, as denoted by the suffix "Z".
A string representing the given date in the ISO 8601 format according to universal time.
The toUTCString() method converts a date to a string, using the UTC time zone.
A string representing the given date using the UTC time zone.
The getTime() method returns the numeric value corresponding to the time for the specified date according to universal time. You can use this method to help assign a date and time to another Date object. This method is functionally equivalent to the valueOf() method.
A number representing the milliseconds elapsed between 1 January 1970 00:00:00 UTC and the given date.
The setTime() method sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date (effectively, the value of the argument).
The getTimezoneOffset() method returns the time zone difference, in minutes, from current locale (host system settings) to UTC.
A number representing the time-zone offset from UTC, in minutes, for the date based on current host system settings.
The getFullYear() method returns the year of the specified date according to local time. Use this method instead of the getYear() method.
A number corresponding to the year of the given date, according to local time.
The getUTCFullYear() method returns the year in the specified date according to universal time.
A number representing the year in the given date according to universal time.
The getMonth() method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year).
An integer number, between 0 and 11, representing the month in the given date according to local time. 0 corresponds to January, 1 to February, and so on.
The getUTCMonth() returns the month of the specified date according to universal time, as a zero-based value (where zero indicates the first month of the year).
An integer number, between 0 and 11, corresponding to the month of the given date according to universal time. 0 for January, 1 for February, 2 for March, and so on.
The getDate() method returns the day of the month for the specified date according to local time.
An integer number, between 1 and 31, representing the day of the month for the given date according to local time.
The getUTCDate() method returns the day (date) of the month in the specified date according to universal time.
An integer number, between 1 and 31, representing the day of the month in the given date according to universal time.
The getDay() method returns the day of the week for the specified date according to local time, where 0 represents Sunday.
An integer number corresponding to the day of the week for the given date, according to local time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.
The getUTCDay() method returns the day of the week in the specified date according to universal time, where 0 represents Sunday.
An integer number corresponding to the day of the week for the given date, according to universal time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.
The getHours() method returns the hour for the specified date, according to local time.
An integer number, between 0 and 23, representing the hour for the given date according to local time.
The getUTCHours() method returns the hours in the specified date according to universal time.
An integer number, between 0 and 23, representing the hours in the given date according to universal time.
The getMinutes() method returns the minutes in the specified date according to local time.
An integer number, between 0 and 59, representing the minutes in the given date according to local time.
The getUTCMinutes() method returns the minutes in the specified date according to universal time.
An integer number, between 0 and 59, representing the minutes in the given date according to universal time.
The getSeconds() method returns the seconds in the specified date according to local time.
An integer number, between 0 and 59, representing the seconds in the given date according to local time.
The getUTCSeconds() method returns the seconds in the specified date according to universal time.
An integer number, between 0 and 59, representing the seconds in the given date according to universal time.
The getMilliseconds() method returns the milliseconds in the specified date according to local time.
A number, between 0 and 999, representing the milliseconds for the given date according to local time.
The getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time.
An integer number, between 0 and 999, representing the milliseconds in the given date according to universal time.
The setMilliseconds() method sets the milliseconds for a specified date according to local time.
A number between 0 and 999, representing the milliseconds.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCMilliseconds() method sets the milliseconds for a specified date according to universal time.
A number between 0 and 999, representing the milliseconds.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setSeconds() method sets the seconds for a specified date according to local time.
An integer between 0 and 59, representing the seconds.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setSeconds() method sets the seconds for a specified date according to local time.
An integer between 0 and 59, representing the seconds.
A number between 0 and 999, representing the milliseconds.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCSeconds() method sets the seconds for a specified date according to universal time.
An integer between 0 and 59, representing the seconds.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCSeconds() method sets the seconds for a specified date according to universal time.
An integer between 0 and 59, representing the seconds.
A number between 0 and 999, representing the milliseconds.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setMinutes() method sets the minutes for a specified date according to local time.
An integer between 0 and 59, representing the minutes.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setMinutes() method sets the minutes for a specified date according to local time.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setMinutes() method sets the minutes for a specified date according to local time.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
A number between 0 and 999, representing the milliseconds. If you specify the msValue parameter, you must also specify the minutesValue and secondsValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCMinutes() method sets the minutes for a specified date according to universal time.
An integer between 0 and 59, representing the minutes.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCMinutes() method sets the minutes for a specified date according to universal time.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCMinutes() method sets the minutes for a specified date according to universal time.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
A number between 0 and 999, representing the milliseconds. If you specify the msValue parameter, you must also specify the minutesValue and secondsValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setHours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setHours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
An integer between 0 and 59, representing the minutes.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setHours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setHours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
A number between 0 and 999, representing the milliseconds. If you specify the msValue parameter, you must also specify the minutesValue and secondsValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCHours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCHours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
An integer between 0 and 59, representing the minutes.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCHours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCHours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance.
An integer between 0 and 23, representing the hour.
An integer between 0 and 59, representing the minutes.
An integer between 0 and 59, representing the seconds. If you specify the secondsValue parameter, you must also specify the minutesValue.
A number between 0 and 999, representing the milliseconds. If you specify the msValue parameter, you must also specify the minutesValue and secondsValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setDate() method sets the day of the Date object relative to the beginning of the currently set month.
An integer representing the day of the month.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the given date (the Date object is also changed in place).
The setUTCDate() method sets the day of the month for a specified date according to universal time.
An integer representing the day of the month.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setMonth() method sets the month for a specified date according to the currently set year.
An integer between 0 and 11, representing the months January through December.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setMonth() method sets the month for a specified date according to the currently set year.
An integer between 0 and 11, representing the months January through December.
An integer from 1 to 31, representing the day of the month.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCMonth() method sets the month for a specified date according to universal time.
An integer between 0 and 11, representing the months January through December.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCMonth() method sets the month for a specified date according to universal time.
An integer between 0 and 11, representing the months January through December.
An integer from 1 to 31, representing the day of the month.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setFullYear() method sets the full year for a specified date according to local time. Returns new timestamp.
An integer specifying the numeric value of the year, for example, 1995.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setFullYear() method sets the full year for a specified date according to local time. Returns new timestamp.
An integer specifying the numeric value of the year, for example, 1995.
An integer between 0 and 11 representing the months January through December.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setFullYear() method sets the full year for a specified date according to local time. Returns new timestamp.
An integer specifying the numeric value of the year, for example, 1995.
An integer between 0 and 11 representing the months January through December.
An integer between 1 and 31 representing the day of the month. If you specify the dayValue parameter, you must also specify the monthValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCFullYear() method sets the full year for a specified date according to universal time.
An integer specifying the numeric value of the year, for example, 1995.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCFullYear() method sets the full year for a specified date according to universal time.
An integer specifying the numeric value of the year, for example, 1995.
An integer between 0 and 11 representing the months January through December.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
The setUTCFullYear() method sets the full year for a specified date according to universal time.
An integer specifying the numeric value of the year, for example, 1995.
An integer between 0 and 11 representing the months January through December.
An integer between 1 and 31 representing the day of the month. If you specify the dayValue parameter, you must also specify the monthValue.
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
DOMParser can parse XML or HTML source stored in a string into a DOM Document.
Constructs a new DOMParser object.
Builds an XMLDocument object from the specified string.
String that specifies the contents of the XML file to parse.
String that specifies the content type of the string to parse. Can be one of the following values .
If type does not match a value in the , an exception is thrown.
Document object contained the parsed content if successful. If not successful, returns a Document describing the error.
Supported MIME types
text/html
text/xml
application/xml
application/xhtml+xml
image/svg+xml
The kind of drag data item such as a string or a file.
The drag data item's type, typically a MIME type.
Returns the File object associated with the drag data item (or null if the drag item is not a file).
Invokes the specified callback with the drag data item string as its argument.
Adds an File to the drag item list and returns a DataTransferItem for the new item.
Adds a string of a specific type to the drag item list and returns a DataTransferItem for the new item.
A string representing the drag item's data.
A string of the drag item's type.
Some example types are text/html and text/plain.
Removes the drag item from the list at the given index.
index of the item in the drag data list to remove.
Removes all of the drag items from the list.
Number of drag items in the list.
Type of drag-and-drop.
Types of operations that are possible.
List of all of the drag data.
Contains a list of all the local files available on the data transfer.
formats that were set in the dragstart event.
Remove the data associated with a given type. The type argument is optional. If the type is empty or not
specified, the data associated with all types is removed. If data for the specified type does not exist,
or the data transfer contains no data, this method will have no effect.
A string representing the type of data to remove. (Optional)
Retrieves the data for a given type, or an empty string if data for that type does not exist or the data
transfer contains no data.
Type of data to retrieve. Example data types are text/plain and text/uri-list.
rag data for the specified format.
Set the data for a given type. If data for the type does not exist, it is added at the end, such that the
last item in the types list will be the new format. If data for the type already exists, the existing data
is replaced in the same position.
Type of the drag data to add to the drag object.
Example data types are text/plain and text/uri-list.
Data to add to the drag object.
Set the image to be used for dragging if a custom one is desired.
An image Element element to use for the drag feedback image.
A long indicating the horizontal offset within the image.
A long indicating the vertical offset within the image.
The Element interface represents an object of a Document. This interface describes methods and properties common to all kinds of elements. Specific behaviors are described in interfaces which inherit from Element but add additional functionality. For example, the HTMLElement interface is the base interface for HTML elements, while the SVGElement interface is the basis for all SVG elements.
Languages outside the realm of the Web platform, like XUL through the XULElement interface, also implement it.
Collection of all attribute nodes registered to the specified node.
The number of child nodes that are elements.
All child elements of an element as a collection.
Token list of class attribute
gets and sets the value of the class attribute of the specified element.
The Element.clientHeight read-only property returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin.
The width of the left border of an element in pixels. It includes the width of the vertical scrollbar if the text direction of the element is right–to–left and if there is an overflow causing a left vertical scrollbar to be rendered. clientLeft does not include the left margin or the left padding. clientLeft is read-only.
The width of the top border of an element in pixels. It does not include the top margin or padding. clientTop is read-only.
The Element.clientWidth property is the inner width of an element in pixels. It includes padding but not the vertical scrollbar (if present, if rendered), border or margin.
The ParentNode.firstElementChild read-only property returns the object's first child Element, or null if there are no child elements.
The hidden global attribute is a Boolean attribute indicating that the element is not yet, or is no longer, relevant.
Gets or sets the element's identifier (attribute id).
The innerHTML sets or gets the HTML syntax describing the element's descendants.
The ParentNode.lastElementChild read-only method returns the object's last child Element or null if there are no child elements.
Returns the Element immediately prior to this ChildNode in its parent's children list, or null if there is no Element in the list prior to this ChildNode.
Returns the Element immediately following this ChildNode in its parent's children list, or null if there is no Element in the list following this ChildNode.
The outerHTML attribute of the element DOM interface gets the serialized HTML fragment describing the element including its descendants. It can be set to replace the element with nodes parsed from the given string.
The Element.scrollHeight read-only attribute is a measurement of the height of an element's content including content not visible on the screen due to overflow. The scrollHeight value is equal to the minimum clientHeight the element would require in order to fit all the content in the viewpoint without using a vertical scrollbar. It includes the element padding but not its margin.
The Element.scrollLeft property gets or sets the number of pixels that an element's content is scrolled to the left.
The Element.scrollTop property gets or sets the number of pixels that the content of an element is scrolled upward. An element's scrollTop is a measurement of the distance of an element's top to its topmost visible content. When an element content does not generate a vertical scrollbar, then its scrollTop value defaults to 0.
The Element.scrollWidth read–only property returns either the width in pixels of the content of an element or the width of the element itself, whichever is greater. If the element is wider than its content area (for example, if there are scroll bars for scrolling through the content), the scrollWidth is larger than the clientWidth.
Returns the name of the element.
Returns the event handling code for the wheel event.
Returns the value of a specified attribute on the element. If the given attribute does not exist, the value returned will either be null or "" (the empty string)
name of the attribute whose value you want to get.
string containing the value of attributeName.
returns the string value of the attribute with the specified namespace and name. If the named attribute does not exist, the value returned will either be null or "" (the empty string);
The namespace in which to look for the specified attribute.
The string value of the specified attribute. If the attribute doesn't exist, the result is null.
The Element.getBoundingClientRect() method returns a text rectangle object that encloses a group of text rectangles.
The Element.getClientRects() method returns a collection of rectangles that indicate the bounding rectangles for each box in a client.
Returns an array-like object of all child elements which have all of the given class names.
Retrieve a set of all descendant elements, of a particular tag name, from the current element.
Retrieve a set of all descendant elements, of a particular tag name and namespace, from the current element.
namespace URI of elements to look for
local name of elements to look for or the special value "*", which matches all elements
Check if the element has the specified attribute, or not.
string representing the name of the attribute.
holds the return value true or false.
Check if the element has the specified attribute, in the specified namespace, or not.
string specifying the namespace of the attribute.
name of the attribute.
Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.
selectors is a group of selectors to match on.
Returns a non-live NodeList of all elements descended from the element on which it is invoked that match the specified group of CSS selectors.
selectors is a group of selectors to match on.
The ChildNode.remove method removes the object from the tree it belongs to.
Removes an attribute from the specified element.
String that names the attribute to be removed from element.
Remove the attribute with the specified name and namespace, from the current node.
String that contains the namespace of the attribute.
String that names the attribute to be removed from the current node.
Scrolls the page until the element gets into the view.
If true, the scrolled element is aligned with the top of the scroll area. If false, it is aligned with the bottom.
Adds a new attribute or changes the value of an existing attribute on the specified element.
the name of the attribute as a string.
the desired new value of the attribute.
Adds a new attribute or changes the value of an attribute with the given namespace and name.
String specifying the namespace of the attribute.
string identifying the attribute to be set.
the desired string value of the new attribute.
Call this method during the handling of a mousedown event to retarget all mouse events to this element until the mouse button is released or document.releaseCapture() is called.
Call this method during the handling of a mousedown event to retarget all mouse events to this element until the mouse button is released or document.releaseCapture() is called.
If true, all events are targeted directly to this element; if false, events can also fire at descendants of this element.
Parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position. It does not reparse the element it is being used on and thus it does not corrupt the existing elements inside the element. This, and avoiding the extra step of serialization make it much faster than direct innerHTML manipulation.
The position relative to the element
String to be parsed as HTML or XML and inserted into the tree.
The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script.
The content IDL attribute must return the template element's template contents.
The data that is transferred during a drag and drop interaction.
A generic version of the DragEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type.
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
A MessageEvent interface represents a message received by a target, being a WebSocket or a WebRTC RTCDataChannel.
Creates a new MessageEvent
Is a DOMString representing the name of the event.
Creates a new MessageEvent
Is a DOMString representing the name of the event.
Is a DOMString representing the name of the event
Returns a DOMString, Blob or an ArrayBuffer containing the data send by the emitter.
A DOMString, Blob or an ArrayBuffer containing the data send by the emitter.
A CloseEvent is sent to clients using WebSockets when the connection is closed.
Creates a new CloseEvent
Is a DOMString representing the name of the event.
Creates a new CloseEvent
Is a DOMString representing the name of the event.
Is a CloseEventInit dictionary
Close code sent by the server.
Reason the server closed the connection. This is specific to the particular server and sub-protocol.
Indicates whether or not the connection was cleanly closed.
Normal closure; the connection successfully completed whatever purpose for which it was created.
The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.
// The endpoint is terminating the connection due to a protocol error.
The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data).
Reserved. Indicates that no status code was provided even though one was expected.
Reserved. Used to indicate that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected.
The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message).
The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable.
The endpoint is terminating the connection because a data frame was received that is too large.
The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't.
The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.
The server is terminating the connection because it is restarting. [Ref]
The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients. [Ref]
Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).
Indicates the Close code.
Indicates the Reason the server closed the connection. This is specific to the particular server and sub-protocol.
Indicates whether or not the connection was cleanly closed.
A Boolean value indicating whether or not the alt key was down when the touch event was fired.
A of all the objects representing individual points of contact whose states changed between the previous touch event and this one.
A Boolean value indicating whether or not the control key was down when the touch event was fired.
A Boolean value indicating whether or not the meta key was down when the touch event was fired.
A Boolean value indicating whether or not the shift key was down when the touch event was fired.
A of all the objects that are both currently in contact with the touch surface and were also started on the same element that is the target of the event.
A of all the objects representing all current points of contact with the surface, regardless of target or changed status.
A generic version of the TouchEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
Equivalent to the Function type in Javascript.
Creates a new function with the specified implementation, and the
set of named parameters.
Argument names, followed by the function body.
Creates a new function with the specified implementation, and the
set of named parameters.
List of comma separated argument names
The function body
Creates a new function with the specified implementation, and the
set of named parameters.
Argument names
The function body
Gets the number of parameters expected by the function.
Invokes the function against the specified object instance.
The object used as the value of 'this' within the function.
Any return value returned from the function.
Invokes the function against the specified object instance.
The object used as the value of 'this' within the function.
The set of arguments to pass in into the function.
Any return value returned from the function.
Invokes the function against the specified object instance.
The object used as the value of 'this' within the function.
Any return value returned from the function.
Invokes the function against the specified object instance.
The object used as the value of 'this' within the function.
One or more arguments to pass in into the function.
Any return value returned from the function.
Returns the VRDisplay.displayId of the associated VRDisplay — the VRDisplay that the gamepad is controlling the displayed scene of.
An identification string for the gamepad. This string identifies the brand or style of connected gamepad device. Typically, this will include the USB vendor and a product ID.
The index of the gamepad in the Navigator. When multiple gamepads are connected to a user agent, indices must be assigned on a first-come, first-serve basis, starting at zero. If a gamepad is disconnected, previously assigned indices must not be reassigned to gamepads that continue to be connected. However, if a gamepad is disconnected, and subsequently the same or a different gamepad is then connected, index entries must be reused.
Indicates whether the physical device represented by this object is still connected to the system. When a gamepad becomes unavailable, whether by being physically disconnected, powered off or otherwise unusable, the connected attribute must be set to false.
Last time the data for this gamepad was updated. Timestamp is a monotonically increasing value that allows the author to determine if the axes and button data have been updated from the hardware. The value must be relative to the navigationStart attribute of the PerformanceTiming interface. Since values are monotonically increasing they can be compared to determine the ordering of updates, as newer values will always be greater than or equal to older values. If no data has been received from the hardware, the value of the timestamp attribute should be the time relative to navigationStart when the Gamepad object was first made available to script.
The mapping in use for this device. If the user agent has knowledge of the layout of the device, then it should indicate that a mapping is in use by setting this property to a known mapping name. Currently the only known mapping is "standard", which corresponds to the Standard Gamepad layout. If the user agent does not have knowledge of the device layout and is simply providing the controls as represented by the driver in use, then it must set the mapping property to an empty string.
Array of values for all axes of the gamepad. All axis values must be linearly normalized to the range [-1.0 .. 1.0]. As appropriate, -1.0 should correspond to "up" or "left", and 1.0 should correspond to "down" or "right". Axes that are drawn from a 2D input device should appear next to each other in the axes array, X then Y. It is recommended that axes appear in decreasing order of importance, such that element 0 and 1 typically represent the X and Y axis of a directional stick.
Array of button states for all buttons of the gamepad. It is recommended that buttons appear in decreasing importance such that the primary button, secondary button, tertiary button, and so on appear as elements 0, 1, 2, ... in the buttons array.
The pressed state of the button. This property must be true if the button is currently pressed, and false if it is not pressed. For buttons which do not have a digital switch to indicate a pure pressed or released state, the user agent must choose a threshold value to indicate the button as pressed when its value is above a certain amount. If the platform API gives a recommended value, the user agent should use that. In other cases, the user agent should choose some other reasonable value.
For buttons that have an analog sensor, this property must represent the amount which the button has been pressed. All button values must be linearly normalized to the range [0.0 .. 1.0]. 0.0 must mean fully unpressed, and 1.0 must mean fully pressed. For buttons without an analog sensor, only the values 0.0 and 1.0 for fully unpressed and fully pressed must be provided.
Returns a unique identifier for this object. A given touch point (say, by a finger) will have the same identifier for the duration of its movement around the surface. This lets you ensure that you're tracking the same touch all the time.
Returns the X coordinate of the touch point relative to the left edge of the screen.
Returns the Y coordinate of the touch point relative to the top edge of the screen.
Returns the X coordinate of the touch point relative to the left edge of the browser viewport, not including any scroll offset.
Returns the Y coordinate of the touch point relative to the top edge of the browser viewport, not including any scroll offset.
Returns the X coordinate of the touch point relative to the left edge of the document. Unlike clientX, this value includes the horizontal scroll offset, if any.
Returns the Y coordinate of the touch point relative to the top of the document. Unlike clientY, this value includes the vertical scroll offset, if any.
Returns the on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.
Returns the X radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenX.
Returns the Y radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenY.
Returns the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
Returns the amount of pressure being applied to the surface by the user, as a float between 0.0 (no pressure) and 1.0 (maximum pressure).
The number of objects in the TouchList.
Returns the object at the specified index in the list.
Returns enumerator of objects in the TouchList
A representaion of the options used in https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page.
Whether the comparison is for sorting or for searching for matching strings. Possible values are "sort" and "search"; the default is "sort".
Which differences in the strings should lead to non-zero result values.
Whether punctuation should be ignored. Possible values are true and false; the default is false.
Whether numeric collation should be used, such that "1" < "2" < "10". Possible values are true and false; the default is false. This option can be set through an options property or through a Unicode extension key; if both are provided, the options property takes precedence. Implementations are not required to support this property.
Whether upper case or lower case should sort first. Possible values are "upper", "lower", or "false" (use the locale's default); the default is "false". This option can be set through an options property or through a Unicode extension key; if both are provided, the options property takes precedence. Implementations are not required to support this property.
Whether upper case or lower case should sort first. Possible values are "upper", "lower", or "false" (use the locale's default); the default is "false". This option can be set through an options property or through a Unicode extension key; if both are provided, the options property takes precedence. Implementations are not required to support this property.
Which differences in the strings should lead to non-zero result values.
Only strings that differ in base letters compare as unequal. Examples: a ≠ b, a = á, a = A.
Only strings that differ in base letters or accents and other diacritic marks compare as unequal. Examples: a ≠ b, a ≠ á, a = A.
Only strings that differ in base letters or case compare as unequal. Examples: a ≠ b, a = á, a ≠ A.
Strings that differ in base letters, accents and other diacritic marks, or case compare as unequal. Other differences may also be taken into consideration. Examples: a ≠ b, a ≠ á, a ≠ A.
Whether the comparison is for sorting or for searching for matching strings. Possible values are "sort" and "search"; the default is "sort".
The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". For information about this option, see the Intl page.
see MDN
see MDN
Provides developers a way to react to changes in a DOM. It is designed as a replacement for Mutation Events defined in the DOM3 Events specification.
see MDN
Constructor for instantiating new DOM mutation observers.
The function which will be called on each DOM mutation. The observer will call this function with two arguments. The first is an array of objects, each of type MutationRecord. The second is this MutationObserver instance.
Registers the MutationObserver instance to receive notifications of DOM mutations on the specified node.
The Node on which to observe DOM mutations.
A MutationObserverInit object, specifies which DOM mutations should be reported.
Stops the MutationObserver instance from receiving notifications of DOM mutations. Until the observe() method is used again, observer's callback will not be invoked.
Empties the MutationObserver instance's record queue and returns what was in there.
String global object extension methods for the ECMA String prototype object.
The match() method retrieves the matches when matching a string against a regular expression.
A string instance
A regular expression object. If a non-Regex object obj is passed, it is implicitly converted to a Regex by using new Regex(obj).
An Array containing the entire match result and any parentheses-captured matched results, or null if there were no matches.
The match() method retrieves the matches when matching a string against a regular expression.
A string instance
A regular expression object. If a non-Regex object obj is passed, it is implicitly converted to a Regex by using new Regex(obj).
An Array containing the entire match result and any parentheses-captured matched results, or null if there were no matches.
The search() method executes a search for a match between a regular expression and this String object.
A string instance
A regular expression object. If a non-Regex object obj is passed, it is implicitly converted to a Regex by using new Regex(obj).
If successful, returns the index of the first match of the regular expression inside the string. Otherwise, it returns -1.
The search() method executes a search for a match between a regular expression and this String object.
A string instance
A regular expression object. If a non-Regex object obj is passed, it is implicitly converted to a Regex by using new Regex(obj).
If successful, returns the index of the first match of the regular expression inside the string. Otherwise, it returns -1.
The toLowerCase() method returns the calling string value converted to lowercase.
A string instance
A new string representing the calling string converted to lower case.
The toLocaleLowerCase() method returns the calling string value converted to lower case, according to any locale-specific case mappings.
A string instance
A new string representing the calling string converted to lower case, according to any locale-specific case mappings.
The toUpperCase() method returns the calling string value converted to uppercase.
A string instance
A new string representing the calling string converted to upper case.
The toLocaleUpperCase() method returns the calling string value converted to upper case, according to any locale-specific case mappings.
A string instance
A new string representing the calling string converted to upper case, according to any locale-specific case mappings.
The localeCompare() method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
A string instance
The string against which the referring string is compared
A negative number if the reference string occurs before the compare string; positive if the reference string occurs after the compare string; 0 if they are equivalent.
The localeCompare() method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
A string instance
The string against which the referring string is compared
A string with a BCP 47 language tag, or an array of such strings. For the general form and interpretation of the locales argument, see the Intl page.
A negative number if the reference string occurs before the compare string; positive if the reference string occurs after the compare string; 0 if they are equivalent.
A negative number if the reference string occurs before the compare string; positive if the reference string occurs after the compare string; 0 if they are equivalent.
The localeCompare() method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
A string instance
The string against which the referring string is compared
A string with a BCP 47 language tag, or an array of such strings. For the general form and interpretation of the locales argument, see the Intl page.
An object with some or all of the following properties:
A negative number if the reference string occurs before the compare string; positive if the reference string occurs after the compare string; 0 if they are equivalent.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A String that is to be replaced by newSubStr. It is treated as a verbatim string and is not interpreted as a regular expression. Only the first occurrence will be replaced.
The String that replaces the substring specified by the specified regexp or substr parameter. A number of special replacement patterns are supported; see the "Specifying a string as a parameter" section below.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A String that is to be replaced by newSubStr. It is treated as a verbatim string and is not interpreted as a regular expression. Only the first occurrence will be replaced.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A String that is to be replaced by newSubStr. It is treated as a verbatim string and is not interpreted as a regular expression. Only the first occurrence will be replaced.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A String that is to be replaced by newSubStr. It is treated as a verbatim string and is not interpreted as a regular expression. Only the first occurrence will be replaced.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A String that is to be replaced by newSubStr. It is treated as a verbatim string and is not interpreted as a regular expression. Only the first occurrence will be replaced.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A RegExp object or literal. The match or matches are replaced with newSubStr or the value returned by the specified function.
The String that replaces the substring specified by the specified regexp or substr parameter. A number of special replacement patterns are supported; see the "Specifying a string as a parameter" section below.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A RegExp object or literal. The match or matches are replaced with newSubStr or the value returned by the specified function.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A RegExp object or literal. The match or matches are replaced with newSubStr or the value returned by the specified function.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A RegExp object or literal. The match or matches are replaced with newSubStr or the value returned by the specified function.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.
A string instance
A RegExp object or literal. The match or matches are replaced with newSubStr or the value returned by the specified function.
A function to be invoked to create the new substring to be used to replace the matches to the given regexp or substr.
A new string with some or all matches of a pattern replaced by a replacement.
The slice() method extracts a section of a string and returns a new string.
A string instance
The zero-based index at which to begin extraction. If negative, it is treated as strLength + beginIndex where strLength is the length of the string (for example, if beginIndex is -3 it is treated as strLength - 3). If beginIndex is greater than or equal to the length of the string, slice() returns an empty string.
A new string containing the extracted section of the string.
The slice() method extracts a section of a string and returns a new string.
A string instance
The zero-based index at which to begin extraction. If negative, it is treated as strLength + beginIndex where strLength is the length of the string (for example, if beginIndex is -3 it is treated as strLength - 3). If beginIndex is greater than or equal to the length of the string, slice() returns an empty string.
The zero-based index before which to end extraction. The character at this index will not be included. If endIndex is omitted, slice() extracts to the end of the string. If negative, it is treated as strLength + endIndex where strLength is the length of the string (for example, if endIndex is -3 it is treated as strLength - 3).
A new string containing the extracted section of the string.
Splits a String object into an array of strings by separating the string into substrings.
A string instance
Specifies the character to use for separating the string. The separator is treated as a string or a regular expression. If separator is omitted or does not occur in str, the array returned contains one element consisting of the entire string. If separator is an empty string, str is converted to an array of characters.
An array of strings split at each point where the separator occurs in the given string.
Splits a String object into an array of strings by separating the string into substrings.
A string instance
Integer specifying a limit on the number of splits to be found. The split() method still splits on every match of separator, until the number of split items match the limit or the string falls short of separator.
An array of strings split at each point where the separator occurs in the given string.
Splits a String object into an array of strings by separating the string into substrings.
A string instance
Specifies the character to use for separating the string. The separator is treated as a string or a regular expression. If separator is omitted or does not occur in str, the array returned contains one element consisting of the entire string. If separator is an empty string, str is converted to an array of characters.
Integer specifying a limit on the number of splits to be found. The split() method still splits on every match of separator, until the number of split items match the limit or the string falls short of separator.
An array of strings split at each point where the separator occurs in the given string.
The split() method splits a String object into an array of strings by separating the string into substrings.
A string instance
An array of strings split at each point where the separator occurs in the given string.
The split() method splits a String object into an array of strings by separating the string into substrings.
A string instance
Specifies the character(s) to use for separating the string. The separator is treated as a string or a regular expression. If separator is omitted or does not occur in str, the array returned contains one element consisting of the entire string. If separator is an empty string, str is converted to an array of characters.
An array of strings split at each point where the separator occurs in the given string.
The split() method splits a String object into an array of strings by separating the string into substrings.
A string instance
Specifies the character(s) to use for separating the string. The separator is treated as a string or a regular expression. If separator is omitted or does not occur in str, the array returned contains one element consisting of the entire string. If separator is an empty string, str is converted to an array of characters.
Integer specifying a limit on the number of splits to be found. The split() method still splits on every match of separator, until the number of split items match the limit or the string falls short of separator.
An array of strings split at each point where the separator occurs in the given string.
The split() method splits a String object into an array of strings by separating the string into substrings.
A string instance
Specifies the character(s) to use for separating the string. The separator is treated as a string or a regular expression. If separator is omitted or does not occur in str, the array returned contains one element consisting of the entire string. If separator is an empty string, str is converted to an array of characters.
An array of strings split at each point where the separator occurs in the given string.
The split() method splits a String object into an array of strings by separating the string into substrings.
A string instance
Specifies the character(s) to use for separating the string. The separator is treated as a string or a regular expression. If separator is omitted or does not occur in str, the array returned contains one element consisting of the entire string. If separator is an empty string, str is converted to an array of characters.
Integer specifying a limit on the number of splits to be found. The split() method still splits on every match of separator, until the number of split items match the limit or the string falls short of separator.
An array of strings split at each point where the separator occurs in the given string.
The substr() method returns the characters in a string beginning at the specified location through the specified number of characters.
A string instance
Location at which to begin extracting characters. If a negative number is given, it is treated as strLength + start where strLength is the length of the string (for example, if start is -3 it is treated as strLength - 3.)
A new string containing the extracted section of the given string. If length is 0 or a negative number, an empty string is returned.
The substr() method returns the characters in a string beginning at the specified location through the specified number of characters.
A string instance
Location at which to begin extracting characters. If a negative number is given, it is treated as strLength + start where strLength is the length of the string (for example, if start is -3 it is treated as strLength - 3.)
The number of characters to extract.
A new string containing the extracted section of the given string. If length is 0 or a negative number, an empty string is returned.
The substring() method returns a subset of a string between one index and another, or through the end of the string.
A string instance
An integer between 0 and the length of the string, specifying the offset into the string of the first character to include in the returned substring.
A new string containing the extracted section of the given string.
The substring() method returns a subset of a string between one index and another, or through the end of the string.
A string instance
An integer between 0 and the length of the string, specifying the offset into the string of the first character to include in the returned substring.
An integer between 0 and the length of the string, which specifies the offset into the string of the first character not to include in the returned substring.
A new string containing the extracted section of the given string.
The charAt() method returns the specified character from a string.
A string instance
An integer between 0 and 1-less-than the length of the string. If no index is provided, charAt() will use 0.
A string representing the character at the specified index; empty string if index is out of range.
The charCodeAt() method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index (the UTF-16 code unit matches the Unicode code point for code points representable in a single UTF-16 code unit, but might also be the first code unit of a surrogate pair for code points not representable in a single UTF-16 code unit, e.g. Unicode code points > 0x10000). If you want the entire code point value, use codePointAt().
A string instance
An integer greater than or equal to 0 and less than the length of the string; if it is not a number, it defaults to 0.
A number representing the UTF-16 code unit value of the character at the given index; NaN if index is out of range.
The static String.fromCharCode() method returns a string created by using the specified sequence of Unicode values.
String.Empty
The static String.fromCharCode() method returns a string created by using the specified sequence of Unicode values.
A sequence of numbers that are Unicode values.
Represents an array of 32-bit floating point numbers (corresponding to the C 'float' data type)
in the platform byte order. If control over byte order is needed, use DataView instead.
The contents are initialized to 0. Once established, you can reference elements in the array
using the object's methods, or using standard array index syntax (that is, using bracket
notation).
Creates a new Float32Array of the specified length.
Length of array to create
Creates a new Float32Array out of the specified Float32Array.
Float32Array to use as initial contents to the new array.
Creates a new Float32Array out of the specified object.
Object to be converted into the new array.
Creates a new Float32Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Float32Array type: "Float32Array".
Represents an array of 64-bit floating point numbers (corresponding to the C 'double' data type)
in the platform byte order. If control over byte order is needed, use DataView instead.
The contents are initialized to 0. Once established, you can reference elements in the array
using the object's methods, or using standard array index syntax (that is, using bracket
notation).
Creates a new Float64Array of the specified length.
Length of array to create
Creates a new Float64Array out of the specified Float64Array.
Float64Array to use as initial contents to the new array.
Creates a new Float64Array out of the specified object.
Object to be converted into the new array.
Creates a new Float64Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Float64Array type: "Float64Array".
Represents an array of twos-complement 16-bit signed integers in the platform byte order.
If control over byte order is needed, use DataView instead. The contents are initialized to 0.
Once established, you can reference elements in the array using the object's methods, or using
standard array index syntax (that is, using bracket notation).
Creates a new Int16Array of the specified length.
Length of array to create
Creates a new Int16Array out of the specified Int16Array.
Int16Array to use as initial contents to the new array.
Creates a new Int16Array out of the specified object.
Object to be converted into the new array.
Creates a new Int16Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Int16Array type: "Int16Array".
Represents an array of twos-complement 32-bit signed integers in the platform byte order.
If control over byte order is needed, use DataView instead. The contents are initialized to 0.
Once established, you can reference elements in the array using the object's methods, or using
standard array index syntax (that is, using bracket notation).
Creates a new Int32Array of the specified length.
Length of array to create
Creates a new Int32Array out of the specified Int32Array.
Int32Array to use as initial contents to the new array.
Creates a new Int32Array out of the specified object.
Object to be converted into the new array.
Creates a new Int32Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Int32Array type: "Int32Array".
Represents an array of twos-complement 8-bit signed integers. The contents are initialized to 0.
Once established, you can reference elements in the array using the object's methods, or using standard
array index syntax (that is, using bracket notation).
Creates a new Int8Array of the specified length.
Length of array to create
Creates a new Int8Array out of the specified Int8Array.
Int8Array to use as initial contents to the new array.
Creates a new Int8Array out of the specified object.
Object to be converted into the new array.
Creates a new Int8Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Int8Array type: "Int8Array".
The CanvasGradient interface represents an opaque object describing a gradient.
It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or
CanvasRenderingContext2D.createRadialGradient().
Adds a new stop, defined by an offset and a color, to the gradient.
If the offset is not between 0 and 1 an INDEX_SIZE_ERR is raised, if the color can't be parsed
as a CSS <color>, a SYNTAX_ERR is raised.
The CanvasPattern interface represents an opaque object describing a pattern, based on a image,
a canvas or a video, created by the CanvasRenderingContext2D.createPattern() method.
This method uses an SVGMatrix object as the pattern's transformation matrix and invokes
it on the pattern.
This is experimental API that should not be used in production code.
The ImageData interface represents the underlying pixel data of an area of a <canvas> element.
It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D
object associated with a canvas: createImageData() and getImageData(). It can also be used to set
a part of the canvas by using putImageData().
Creates an ImageData object.
Creates an ImageData object from a given Uint8ClampedArray and the size of the image it contains.
Note that this is the most common way to create such an object in workers as createImageData()
is not available there.
A Uint8ClampedArray containing the underlying pixel representation of theimage.
An unsigned number representing the width of the represented image.
An unsigned number representing the height of the represented image. This value is optional
if an array is given: it will be inferred from its size and the given width.
This is experimental API that should not be used in production code.
Creates an ImageData object from the size of the image. Without specifying the array, an image of
a black rectangle is created. Note that this is the most common way to create such an object in
workers as createImageData() is not available there.
An unsigned number representing the width of the represented image.
An unsigned number representing the height of the represented image.
This is experimental API that should not be used in production code.
A Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order,
with integer values between 0 and 255 (included).
An unsigned number representing the actual height, in pixels, of the ImageData.
An unsigned number representing the actual width, in pixels, of the ImageData.
The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on
CanvasRenderingContext2D objects. The path methods of the CanvasRenderingContext2D interface
are present on this interface as well and are allowing you to create paths that you can retain
and replay as required on a canvas.
This is experimental API that should not be used in production code.
Creates a new Path2D object.
Creates a new Path2D object from an specified Path2D object.
Creates a new Path2D object from an specified string consisting of SVG path data.
Adds a path to the current path.
Many of SVG's graphics operations utilize 2x3 matrices which can be expanded into a 3x3 matrix
for the purposes of matrix arithmetic.
An SVGMatrix object can be designated as read only, which means that attempts to modify the
object will result in an exception being thrown.
SVGMatrix component.
SVGMatrix component.
SVGMatrix component.
SVGMatrix component.
SVGMatrix component.
SVGMatrix component.
Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning
the resulting new matrix.
Return the inverse matrix
A DOMException with code SVG_MATRIX_NOT_INVERTABLE is raised if the matrix is not invertable.
//
Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.
Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.
Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
(angle is measures in degrees.)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
The rotation angle is determined by taking (+/-) atan(y/x). The direction of the vector (x, y)
determines whether the positive or negative angle value is used.
A DOMException with code SVG_INVALID_VALUE_ERR is raised if one of the parameters has an invalid value.
Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix.
Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix.
Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.
Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.
This interface was written so that both Path2D and CanvasRenderingContext2D could inherit their
methods (which are the exact same).
Causes the point of the pen to move back to the start of the current sub-path. It tries
to draw a straight line from the current point to the start. If the shape has already been
closed or has only one point, this function does nothing.
Moves the starting point of a new sub-path to the (x, y) coordinates.
The x axis of the point
The y axis of the point
Moves the starting point of a new sub-path to the (x, y) coordinates.
The x axis of the point
The y axis of the point
Moves the starting point of a new sub-path to the (x, y) coordinates.
The x axis of the point
The y axis of the point
Connects the last point in the subpath to the x, y coordinates with a straight line.
The x axis of the coordinate for the end of the line.
The y axis of the coordinate for the end of the line.
Connects the last point in the subpath to the x, y coordinates with a straight line.
The x axis of the coordinate for the end of the line.
The y axis of the coordinate for the end of the line.
Connects the last point in the subpath to the x, y coordinates with a straight line.
The x axis of the coordinate for the end of the line.
The y axis of the coordinate for the end of the line.
Adds a cubic Bézier curve to the path. It requires three points. The first two points are control points and the third one is the end point. The starting point is the last point in the current path, which can be changed using moveTo() before creating the Bézier curve.
The x axis of the coordinate for the first control point.
The y axis of the coordinate for first control point.
The x axis of the coordinate for the second control point.
The y axis of the coordinate for the second control point.
The x axis of the coordinate for the end point.
The y axis of the coordinate for the end point.
Adds a cubic Bézier curve to the path. It requires three points. The first two points are control points and the third one is the end point. The starting point is the last point in the current path, which can be changed using moveTo() before creating the Bézier curve.
The x axis of the coordinate for the first control point.
The y axis of the coordinate for first control point.
The x axis of the coordinate for the second control point.
The y axis of the coordinate for the second control point.
The x axis of the coordinate for the end point.
The y axis of the coordinate for the end point.
Adds a cubic Bézier curve to the path. It requires three points. The first two points are control points and the third one is the end point. The starting point is the last point in the current path, which can be changed using moveTo() before creating the Bézier curve.
The x axis of the coordinate for the first control point.
The y axis of the coordinate for first control point.
The x axis of the coordinate for the second control point.
The y axis of the coordinate for the second control point.
The x axis of the coordinate for the end point.
The y axis of the coordinate for the end point.
Adds a quadratic Bézier curve to the current path.
The x axis of the coordinate for the control point.
The y axis of the coordinate for the control point.
The x axis of the coordinate for the end point.
The y axis of the coordinate for the end point.
Adds a quadratic Bézier curve to the current path.
The x axis of the coordinate for the control point.
The y axis of the coordinate for the control point.
The x axis of the coordinate for the end point.
The y axis of the coordinate for the end point.
Adds a quadratic Bézier curve to the current path.
The x axis of the coordinate for the control point.
The y axis of the coordinate for the control point.
The x axis of the coordinate for the end point.
The y axis of the coordinate for the end point.
Adds an arc to the path which is centered at (x, y) position with radius r starting at
startAngle and ending at endAngle going in the given direction by anticlockwise
(defaulting to clockwise).
The x axis of the coordinate for the arc's center.
The y axis of the coordinate for the arc's center.
The arc's radius.
The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
The end arc's angle to which it will be drawn, expressed in radians.
An optional Boolean which, if true, draws the arc anticlockwise (counter-clockwise), otherwise
in a clockwise direction.
Adds an arc to the path which is centered at (x, y) position with radius r starting at
startAngle and ending at endAngle going in the given direction by anticlockwise
(defaulting to clockwise).
The x axis of the coordinate for the arc's center.
The y axis of the coordinate for the arc's center.
The arc's radius.
The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
The end arc's angle to which it will be drawn, expressed in radians.
An optional Boolean which, if true, draws the arc anticlockwise (counter-clockwise), otherwise
in a clockwise direction.
Adds an arc to the path which is centered at (x, y) position with radius r starting at
startAngle and ending at endAngle going in the given direction by anticlockwise
(defaulting to clockwise).
The x axis of the coordinate for the arc's center.
The y axis of the coordinate for the arc's center.
The arc's radius.
The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
The end arc's angle to which it will be drawn, expressed in radians.
An optional Boolean which, if true, draws the arc anticlockwise (counter-clockwise), otherwise
in a clockwise direction.
Adds an arc to the path with the given control points and radius, connected to the previous point
by a straight line.
The x axis of the coordinate for the first control point.
The y axis of the coordinate for the first control point.
The x axis of the coordinate for the second control point.
The y axis of the coordinate for the second control point.
The arc's radius.
Adds an arc to the path with the given control points and radius, connected to the previous point
by a straight line.
The x axis of the coordinate for the first control point.
The y axis of the coordinate for the first control point.
The x axis of the coordinate for the second control point.
The y axis of the coordinate for the second control point.
The arc's radius.
Adds an arc to the path with the given control points and radius, connected to the previous point
by a straight line.
The x axis of the coordinate for the first control point.
The y axis of the coordinate for the first control point.
The x axis of the coordinate for the second control point.
The y axis of the coordinate for the second control point.
The arc's radius.
Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and
radiusY starting at startAngle and ending at endAngle going in the given direction by
anticlockwise (defaulting to clockwise).
The x axis of the coordinate for the ellipse's center.
The y axis of the coordinate for the ellipse's center.
The ellipse's major-axis radius.
The ellipse's minor-axis radius.
The rotation for this ellipse, expressed in degrees.
The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
The end ellipse's angle to which it will be drawn, expressed in radians.
An optional Boolean which, if true, draws the ellipse anticlockwise (counter-clockwise),
otherwise in a clockwise direction.
This is experimental API that should not be used in production code.
Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and
radiusY starting at startAngle and ending at endAngle going in the given direction by
anticlockwise (defaulting to clockwise).
The x axis of the coordinate for the ellipse's center.
The y axis of the coordinate for the ellipse's center.
The ellipse's major-axis radius.
The ellipse's minor-axis radius.
The rotation for this ellipse, expressed in degrees.
The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
The end ellipse's angle to which it will be drawn, expressed in radians.
An optional Boolean which, if true, draws the ellipse anticlockwise (counter-clockwise),
otherwise in a clockwise direction.
This is experimental API that should not be used in production code.
Adds an ellipse to the path which is centered at (x, y) position with the radii radiusX and
radiusY starting at startAngle and ending at endAngle going in the given direction by
anticlockwise (defaulting to clockwise).
The x axis of the coordinate for the ellipse's center.
The y axis of the coordinate for the ellipse's center.
The ellipse's major-axis radius.
The ellipse's minor-axis radius.
The rotation for this ellipse, expressed in degrees.
The starting point, measured from the x axis, from which it will be drawn, expressed in radians.
The end ellipse's angle to which it will be drawn, expressed in radians.
An optional Boolean which, if true, draws the ellipse anticlockwise (counter-clockwise),
otherwise in a clockwise direction.
This is experimental API that should not be used in production code.
Creates a path for a rectangle at position (x, y) with a size that is determined by width and height.
The x axis of the coordinate for the rectangle starting point.
The y axis of the coordinate for the rectangle starting point.
The rectangle's width.
The rectangle's height.
Creates a path for a rectangle at position (x, y) with a size that is determined by width and height.
The x axis of the coordinate for the rectangle starting point.
The y axis of the coordinate for the rectangle starting point.
The rectangle's width.
The rectangle's height.
Creates a path for a rectangle at position (x, y) with a size that is determined by width and height.
The x axis of the coordinate for the rectangle starting point.
The y axis of the coordinate for the rectangle starting point.
The rectangle's width.
The rectangle's height.
Indicates the desired type of compositing operation among the existing ones.
See example effects in https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
Default. Draws new shapes on top of the existing canvas content.
The new shape is drawn only where both the new shape and the destination canvas overlap. Everything else is made transparent.
The new shape is drawn where it doesn't overlap the existing canvas content.
The new shape is only drawn where it overlaps the existing canvas content.
New shapes are drawn behind the existing canvas content.
The existing canvas content is kept where both the new shape and existing canvas content overlap. Everything else is made transparent.
The existing content is kept where it doesn't overlap the new shape.
The existing canvas is only kept where it overlaps the new shape. The new shape is drawn behind the canvas content.
Where both shapes overlap the color is determined by adding color values.
Only the existing canvas is present.
Shapes are made transparent where both overlap and drawn normal everywhere else.
The pixels are of the top layer are multiplied with the corresponding pixel of the bottom layer. A darker picture is the result.
Does not work on all browsers
The pixels are inverted, multiplied, and inverted again. A lighter picture is the result (opposite of multiply)
Does not work on all browsers
A combination of multiply and screen. Dark parts on the base layer become darker, and light parts become lighter.
Does not work on all browsers
Retains the darkest pixels of both layers.
Does not work on all browsers
Retains the lightest pixels of both layers.
Does not work on all browsers
Divides the bottom layer by the inverted top layer.
Does not work on all browsers
Divides the inverted bottom layer by the top layer, and then inverts the result.
Does not work on all browsers
A combination of multiply and screen like overlay, but with top and bottom layer swapped.
Does not work on all browsers
A softer version of hard-light. Pure black or white does not result in pure black or white.
Does not work on all browsers
Subtracts the bottom layer from the top layer or the other way round to always get a positive value.
Does not work on all browsers
Like difference, but with lower contrast.
Does not work on all browsers
Preserves the luma and chroma of the bottom layer, while adopting the hue of the top layer.
Does not work on all browsers
Preserves the luma and hue of the bottom layer, while adopting the chroma of the top layer.
Does not work on all browsers
Preserves the luma of the bottom layer, while adopting the hue and chroma of the top layer.
Does not work on all browsers
Preserves the hue and chroma of the bottom layer, while adopting the luma of the top layer.
Does not work on all browsers
Clear the value, to revert back to browser's default.
Indicates the 2D context on CanvaslElement.GetContext().
2d: Two-dimensional rendering context: CanvasRenderingContext2D
Indicates the WebGL (OpenGL ES 2.0) context on CanvaslElement.GetContext().
WebGL -- available only on browsers that implement WebGL version 1 (OpenGL ES 2.0)
Experimental WebGL -- available only on browsers that implement WebGL version 1 (OpenGL ES 2.0)
There are three possible values for this property and those are: butt, round and square.
By default this property is set to butt.
Default. The ends of lines are squared off at the endpoints.
The ends of lines are rounded.
The ends of lines are squared off by adding a box with an equal width and half the height
of the line's thickness.
Clear the value, to revert back to browser's default.
There are three possible values for this property: round, bevel and miter.
By default this property is set to miter.
Note that the lineJoin setting has no effect if the two connected segments have the same direction,
because no joining area will be added in this case.
Rounds off the corners of a shape by filling an additional sector of disc centered at the
common endpoint of connected segments.
The radius for these rounded corners is equal to the line width.
Fills an additional triangular area between the common endpoint of connected segments,
and the separate outside rectangular corners of each segment.
Default. Connected segments are joined by extending their outside edges to connect at a single point,
with the effect of filling an additional lozenge-shaped area.
This setting is effected by the miterLimit property.
Clear the value, to revert back to browser's default.
The text is left-aligned.
The text is right-aligned.
The text is centered.
Default. The text is aligned at the normal start of the line (left-aligned for left-to-right locales,
right-aligned for right-to-left locales).
The text is aligned at the normal end of the line (right-aligned for left-to-right locales,
left-aligned for right-to-left locales).
Clear the value, to revert back to browser's default.
The text baseline is the top of the em square.
The text baseline is the hanging baseline.
The text baseline is the middle of the em square.
Default. The text baseline is the normal alphabetic baseline.
The text baseline is the ideographic baseline; this is the bottom of the body of the characters,
if the main body of characters protrudes beneath the alphabetic baseline.
The text baseline is the bottom of the bounding box. This differs from the ideographic baseline
in that the ideographic baseline doesn't consider descenders.
Clear the value, to revert back to browser's default.
The text direction is left-to-right.
The text direction is right-to-left.
Default. The text direction is inherited from the <canvas> element or the Document as appropriate.
Clear the value, to revert back to browser's default.
Default. Repeat in both directions.
Repeat in horizontal direction only.
Repeat in vertical direction only.
Do not repeat neither horizontally nor vertically.
Clear the value, to revert back to browser's default.
Default. The non-zero winding rule.
The even-odd winding rule.
The CanvasRenderingContext2D interface provides the 2D rendering context for the drawing surface of a
<canvas> element.
To get an object of this interface, call getContext() on a <canvas>, supplying
"CanvasContext2DType.CanvasRenderingContext2D" as the argument.
Sets all pixels in the rectangle defined by starting point (x, y) and size (width, height)
to transparent black, erasing any previously drawn content.
The x axis of the coordinate for the rectangle starting point.
The y axis of the coordinate for the rectangle starting point.
The rectangle's width.
The rectangle's height.
Draws a filled rectangle at (x, y) position whose size is determined by width and height.
The x axis of the coordinate for the rectangle starting point.
The y axis of the coordinate for the rectangle starting point.
The rectangle's width.
The rectangle's height.
Paints a rectangle which has a starting point at (x, y) and has a w width and an h height
onto the canvas, using the current stroke style.
The x axis of the coordinate for the rectangle starting point.
The y axis of the coordinate for the rectangle starting point.
The rectangle's width.
The rectangle's height.
Draws (fills) a given text at the given (x,y) position.
The text to render using the current font, textAlign, textBaseline, and direction values.
The x axis of the coordinate for the text starting point.
The y axis of the coordinate for the text starting point.
Draws (fills) a given text at the given (x,y) position.
The text to render using the current font, textAlign, textBaseline, and direction values.
The x axis of the coordinate for the text starting point.
The y axis of the coordinate for the text starting point.
The maximum width to draw. If specified, and the string is computed to be wider than
this width, the font is adjusted to use a more horizontally condensed font (if one is
available or if a reasonably readable one can be synthesized by scaling the current
font horizontally) or a smaller font.
Draws (strokes) a given text at the given (x, y) position.
The text to render using the current font, textAlign, textBaseline, and direction values.
The x axis of the coordinate for the text starting point.
The y axis of the coordinate for the text starting point.
Draws (strokes) a given text at the given (x, y) position.
The text to render using the current font, textAlign, textBaseline, and direction values.
The x axis of the coordinate for the text starting point.
The y axis of the coordinate for the text starting point.
The maximum width to draw. If specified, and the string is computed to be wider than
this width, the font is adjusted to use a more horizontally condensed font (if one is
available or if a reasonably readable one can be synthesized by scaling the current
font horizontally) or a smaller font.
Returns a TextMetrics object.
The text to measure.
A TextMetrics object.
Width of lines. Default 1.0
Type of endings on the end of lines. Possible values: butt (default), round, square.
Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).
Miter limit ratio. Default 10.
Gets the current line dash pattern.
An Array. A list of numbers that specifies distances to alternately draw a line and a gap
(in coordinate space units). If the number, when setting the elements, was odd, the elements
of the array get copied and concatenated.
For example, setting the line dash to [5, 15, 25] will result in getting back
[5, 15, 25, 5, 15, 25].
Sets the current line dash pattern.
An Array. A list of numbers that specifies distances to alternately draw a line and a gap
(in coordinate space units). If the number of elements in the array is odd, the elements
of the array get copied and concatenated.
For example, [5, 15, 25] will become [5, 15, 25, 5, 15, 25].
Specifies where to start a dash array on a line.
Font setting. Default value 10px sans-serif.
Text alignment setting. Possible values: start (default), end, left, right or center.
Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default),
ideographic, bottom.
Directionality. Possible values: ltr, rtl, inherit (default).
Color or style to use inside shapes. Default #000 (black).
Color or style to use for the lines around shapes. Default #000 (black).
Creates a linear gradient along the line given by the coordinates represented by the parameters.
The x axis of the coordinate of the start point.
The y axis of the coordinate of the start point.
The x axis of the coordinate of the end point.
The y axis of the coordinate of the end point.
A linear CanvasGradient initialized with the specified line.
Creates a radial gradient along the line given by the coordinates represented by the parameters.
The x axis of the coordinate of the start circle.
The y axis of the coordinate of the start circle.
The radius of the start circle.
The x axis of the coordinate of the end circle.
The y axis of the coordinate of the end circle.
The radius of the end circle.
A radial CanvasGradient initialized with the two specified circles.
Creates a pattern using the specified image (a CanvasImageSource). It repeats the source in the
directions specified by the repetition argument. This method returns a CanvasPattern.
A CanvasImageSource to be used as image to repeat. It can either be a:
• HTMLImageElement (<img>),
• HTMLVideoElement (<video>),
• HTMLCanvasElement (<canvas>),
• CanvasRenderingContext2D,
• ImageBitmap (c# object for now),
• ImageData, or a
• Blob.
An opaque CanvasPattern object describing a pattern.
At the time of implementation, ImageBitmap had no documentation and Bridge.NET did not have
it defined inside.
Specifies the blurring effect. Default 0
Color of the shadow. Default fully-transparent black.
Horizontal distance the shadow will be offset. Default 0.
Vertical distance the shadow will be offset. Default 0.
Starts a new path by emptying the list of sub-paths. Call this method when you want
to create a new path.
Fills the subpaths with the current fill style.
Fills the subpaths with the specified fill rule.
The algorithm by which to determine if a point is inside a path or outside a path.
Fills the specified path with the specified fill rule.
A Path2D path to fill.
The algorithm by which to determine if a point is inside a path or outside a path.
Strokes the subpaths with the current stroke style.
Strokes the subpaths with the current stroke style.
A Path2D path to stroke.
If a given element is focused, this method draws a focus ring around the current path.
The element to check whether it is focused or not.
If a given element is focused, this method draws a focus ring around the current path.
A Path2D path to use.
The element to check whether it is focused or not.
Scrolls the current path or a given path into the view.
This is experimental API that should not be used in production code.
Scrolls the current path or a given path into the view.
A Path2D path to use.
This is experimental API that should not be used in production code.
Creates a clipping path from the current sub-paths. Everything drawn after clip() is
called appears inside the clipping path only. For an example, see Clipping paths in
the Canvas tutorial.
Creates a clipping path from the current sub-paths. Everything drawn after clip() is
called appears inside the clipping path only. For an example, see Clipping paths in
the Canvas tutorial.
The algorithm by which to determine if a point is inside a path or outside a path.
Creates a clipping path from the current sub-paths. Everything drawn after clip() is
called appears inside the clipping path only. For an example, see Clipping paths in
the Canvas tutorial.
A Path2D path to clip.
The algorithm by which to determine if a point is inside a path or outside a path.
Reports whether or not the specified point is contained in the current path.
The X coordinate of the point to check.
The Y coordinate of the point to check.
A Boolean, which is true if the specified point is contained in the current or specfied path,
otherwise false.
Reports whether or not the specified point is contained in the current path.
The X coordinate of the point to check.
The Y coordinate of the point to check.
The algorithm by which to determine if a point is inside a path or outside a path.
A Boolean, which is true if the specified point is contained in the current or specfied path,
otherwise false.
Reports whether or not the specified point is contained in the current path.
A Path2D path to use.
The X coordinate of the point to check.
The Y coordinate of the point to check.
A Boolean, which is true if the specified point is contained in the current or specfied path,
otherwise false.
Reports whether or not the specified point is contained in the current path.
A Path2D path to use.
The X coordinate of the point to check.
The Y coordinate of the point to check.
The algorithm by which to determine if a point is inside a path or outside a path.
A Boolean, which is true if the specified point is contained in the current or specfied path,
otherwise false.
Reports whether or not the specified point is inside the area contained by the stroking of a path.
The X coordinate of the point to check.
The Y coordinate of the point to check.
A Boolean, which is true if the point is inside the area contained by the stroking of a path,
otherwise false.
Reports whether or not the specified point is inside the area contained by the stroking of a path.
A Path2D path to use.
The X coordinate of the point to check.
The Y coordinate of the point to check.
A Boolean, which is true if the point is inside the area contained by the stroking of a path,
otherwise false.
Current transformation matrix (SVGMatrix object).
This is experimental API that should not be used in production code.
Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation
angle and is expressed in radians.
The angle to rotate clockwise in radians. You can use degree * Math.PI / 180 if you want to
calculate from a degree value.
Adds a scaling transformation to the canvas units by x horizontally and by y vertically.
Scaling factor in the horizontal direction.
Scaling factor in the vertical direction.
Adds a translation transformation by moving the canvas and its origin x horizontally and
y vertically on the grid.
Distance to move in the horizontal direction.
Distance to move in the vertical direction.
Multiplies the current transformation matrix with the matrix described by its arguments.
Matrix is described by a 3x3 [ a c e // b d f // 0 0 1 ] (// means a matrix line break).
m11: Horizontal scaling.
m12: Horizontal skewing.
m21: Vertical skewing.
m22: Vertical scaling.
dx: Horizontal moving.
dy: Vertical moving.
Resets the current transform to the identity matrix, and then invokes the transform()
method with the same arguments.
Matrix is described by a 3x3 [ a c e // b d f // 0 0 1 ] (// means a matrix line break).
m11: Horizontal scaling.
m12: Horizontal skewing.
m21: Vertical skewing.
m22: Vertical scaling.
dx: Horizontal moving.
dy: Vertical moving.
Resets the current transform by the identity matrix.
This is experimental API that should not be used in production code.
Alpha value that is applied to shapes and images before they are composited onto the canvas.
Default 1.0 (opaque).
With globalAlpha applied this sets how shapes and images are drawn onto the existing bitmap.
Draws the specified image. This method is available in multiple formats, providing a great
deal of flexibility in its use.
An element to draw into the context. The specification permits any canvas image source.
The X coordinate in the destination canvas at which to place the top-left corner of the source image.
The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
Draws the specified image. This method is available in multiple formats, providing a great
deal of flexibility in its use.
An element to draw into the context. The specification permits any canvas image source.
The X coordinate in the destination canvas at which to place the top-left corner of the source image.
The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
The width to draw the image in the destination canvas. This allows scaling of the drawn image.
If null, the image is not scaled in height when drawn.
The height to draw the image in the destination canvas. This allows scaling of the drawn image.
If null, the image is not scaled in height when drawn.
Draws the specified image. This method is available in multiple formats, providing a great
deal of flexibility in its use.
An element to draw into the context. The specification permits any canvas image source.
The X coordinate of the top left corner of the sub-rectangle of the source image to draw into
the destination context.
The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into
the destination context.
The width of the sub-rectangle of the source image to draw into the destination context.
The height of the sub-rectangle of the source image to draw into the destination context.
The X coordinate in the destination canvas at which to place the top-left corner of the source image.
The Y coordinate in the destination canvas at which to place the top-left corner of the source image.
The width to draw the image in the destination canvas. This allows scaling of the drawn image.
If not specified or null, the image is not scaled in height when drawn.
The height to draw the image in the destination canvas. This allows scaling of the drawn image.
If not specified or null, the image is not scaled in height when drawn.
Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the
new object are transparent black.
The width to give the new ImageData object.
The height to give the new ImageData object.
A new ImageData object with the specified width and height. The new object is filled with
transparent black pixels.
Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the
new object are transparent black.
An existing ImageData object from which to copy the width and height. The image itself is not copied.
A new ImageData object with the specified width and height. The new object is filled with
transparent black pixels.
Returns an ImageData object representing the underlying pixel data for the area of the canvas
denoted by the rectangle which starts at (sx, sy) and has an sw width and sh height.
The x axis of the coordinate for the rectangle startpoint from which the ImageData will be extracted.
The y axis of the coordinate for the rectangle endpoint from which the ImageData will be extracted.
The width of the rectangle from which the ImageData will be extracted.
The height of the rectangle from which the ImageData will be extracted.
Paints data from the given ImageData object onto the bitmap. If a dirty rectangle is provided,
only the pixels from that rectangle are painted.
An imageData object containing the array of pixel values.
Position offset in the target canvas context of the rectangle to be painted, relative to the
rectangle in the origin image data.
Position offset in the target canvas context of the rectangle to be painted, relative to the
rectangle in the origin image data.
Paints data from the given ImageData object onto the bitmap. If a dirty rectangle is provided,
only the pixels from that rectangle are painted.
An imageData object containing the array of pixel values.
Position offset in the target canvas context of the rectangle to be painted, relative to the
rectangle in the origin image data.
Position offset in the target canvas context of the rectangle to be painted, relative to the
rectangle in the origin image data.
Position of the top left point of the rectangle to be painted, in the origin image data.
Defaults to the top left of the whole image data.
Position of the top left point of the rectangle to be painted, in the origin image data.
Defaults to the top left of the whole image data.
Width of the rectangle to be painted, in the origin image data. Defaults to the width of the image data.
Height of the rectangle to be painted, in the origin image data. Defaults to the height of the image data.
Image smoothing mode; if disabled, images will not be smoothed if scaled.
This is experimental API that should not be used in production code.
Saves the current drawing style state using a stack so you can revert any change you make to it
using Restore().
Restores the drawing style state to the last element on the 'state stack' saved by save().
A read-only back-reference to the HTMLCanvasElement.
Might be null if it is not associated with a <canvas> element.
Adds a hit region to the canvas.
This is experimental API that should not be used in production code.
Adds a hit region to the canvas.
The options argument is optional. When provided, it is an CanvasHitRegionOptions
object with one or more of its properties set.
This is experimental API that should not be used in production code.
Removes the hit region with the specified id from the canvas.
A DOMString representing the id of the region that is to be removed.
This is experimental API that should not be used in production code.
Removes all hit regions from the canvas.
This is experimental API that should not be used in production code.
Most of these APIs are deprecated and will be removed in the future.
A Path2D object describing the area of the hit region. If not provided, the current path is used.
The fill rule to use (defaults to "nonzero").
The ID for this hit region to reference it for later use in events, for example.
The ID of the parent region for cursor fallback and navigation by accessibility tools.
The cursor to use when the mouse is over this region (defaults to "inherit").
Inherits the cursor of the parent hit region, if any, or the canvas element's cursor.
An element (descendant of the canvas) to which events are to be routed. Defaults to null.
A text label for accessibility tools to use as a description of the region,
if there is no control. Defaults to null.
An ARIA role for accessibility tools to determine how to represent this region,
if there is no control. Defaults to null.
The TextMetrics interface represents the dimension of a text in the canvas, as created by the
CanvasRenderingContext2D.measureText() method.
A double giving the calculated width of a segment of inline text in CSS pixels.
It takes into account the current font of the context.
A double giving the distance parallel to the baseline from the alignment point given by the
CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the
given text, in CSS pixels.
A double giving the distance parallel to the baseline from the alignment point given by the
CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the
given text, in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline attribute to the top of the highest bounding rectangle
of all the fonts used to render the text, in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle of all the
fonts used to render the text, in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to
render the text, in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used
to render the text, in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline property to the top of the em square in the line box,
in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline property to the bottom of the em square in the line box,
in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box,
in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box,
in CSS pixels.
A double giving the distance from the horizontal line indicated by the
CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box,
in CSS pixels.
The JSON object contains methods for parsing JavaScript Object Notation (JSON) and converting values to JSON. It can't be called or constructed, and aside from its two method properties it has no interesting functionality of its own.
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.
Not compatible with collections of nonprimitives - for that case use
The string to parse as JSON. See the JSON object for a description of JSON syntax.
The Object corresponding to the given JSON text.
Arrays of custom classes compatible version of
The string to parse as JSON. See the JSON object for a description of JSON syntax.
The Object corresponding to the given JSON text.
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.
The string to parse as JSON. See the JSON object for a description of JSON syntax.
If a function, prescribes how the value originally produced by parsing is transformed, before being returned.
The Object corresponding to the given JSON text.
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.
The string to parse as JSON. See the JSON object for a description of JSON syntax.
If a function, prescribes how the value originally produced by parsing is transformed, before being returned.
The Object corresponding to the given JSON text.
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.
The string to parse as JSON. See the JSON object for a description of JSON syntax.
The Object corresponding to the given JSON text.
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.
The string to parse as JSON. See the JSON object for a description of JSON syntax.
If a function, prescribes how the value originally produced by parsing is transformed, before being returned.
The Object corresponding to the given JSON text.
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.
The string to parse as JSON. See the JSON object for a description of JSON syntax.
If a function, prescribes how the value originally produced by parsing is transformed, before being returned.
The Object corresponding to the given JSON text.
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
Causes the resulting string to be pretty-printed. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
Causes the resulting string to be pretty-printed. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
Causes the resulting string to be pretty-printed. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
Causes the resulting string to be pretty-printed. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
Causes the resulting string to be pretty-printed. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
The resulting JSON string
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.
The value to convert to a JSON string.
If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.
Causes the resulting string to be pretty-printed. If it is a number, successive levels in the stringification will each be indented by this many space characters (up to 10). If it is a string, successive levels will indented by this string (or the first ten characters of it).
The resulting JSON string
The CSS align-content property aligns a flex container's lines within the flex container when there is extra space on the cross-axis. This property has no effect on single line flexible boxes.
Lines are packed starting from the cross-start. Cross-start edge of the first line and cross-start edge of the flex container are flushed together. Each following line is flush with the preceding.
Lines are packed starting from the cross-end. Cross-end of the last line and cross-end of the flex container are flushed together. Each preceding line is flushed with the following line.
Lines are packed toward the center of the flex container. The lines are flushed with each other and aligned in the center of the flex container. Space between the cross-start edge of the flex container and first line and between cross-end of the flex container and the last line is the same.
Lines are evenly distributed in the flex container. The spacing is done such as the space between two adjacent items is the same. Cross-start edge and cross-end edge of the flex container are flushed with respectively first and last line edges.
Lines are evenly distributed so that the space between two adjacent lines is the same. The empty space before the first and after the last lines equals half of the space between two adjacent lines.
Lines stretch to use the remaining space. The free-space is split equally between all the lines.
The CSS align-items property aligns flex items of the current flex line the same way as justify-content but in the perpendicular direction.
The cross-start margin edge of the flex item is flushed with the cross-start edge of the line.
The cross-end margin edge of the flex item is flushed with the cross-end edge of the line.
The flex item's margin box is centered within the line on the cross-axis. If the cross-size of the item is larger than the flex container, it will overflow equally in both directions.
All flex items are aligned such that their baselines align. The item with the largest distance between its cross-start margin edge and its baseline is flushed with the cross-start edge of the line.
Flex items are stretched such as the cross-size of the item's margin box is the same as the line while respecting width and height constraints.
The CSS all shorthand property resets all properties, but unicode-bidi and direction to their initial or inherited value.
This keyword indicates to change all the properties applying to the element or the element to their initial value. unicode-bidi and direction values are not affected.
This keyword indicates to change all the properties applying to the element or the element to their parent value if they are inheritable or to their initail value if not. unicode-bidi and direction values are not affected.
This keyword indicates to change all the properties applying to the element or the element to their parent value. unicode-bidi and direction values are not affected.
The animation-direction CSS property indicates whether the animation should play in reverse on alternate cycles.
The animation should play forward each cycle. In other words, each time the animation cycles, the animation will reset to the beginning state and start over again. This is the default animation direction setting.
The animation should reverse direction each cycle. When playing in reverse, the animation steps are performed backward. In addition, timing functions are also reversed; for example, an ease-in animation is replaced with an ease-out animation when played in reverse. The count to determine if it is an even or an odd iteration starts at one.
The animation plays backward each cycle. Each time the animation cycles, the animation resets to the end state and start over again.
The animation plays backward on the first play-through, then forward on the next, then continues to alternate. The count to determinate if it is an even or an odd iteration starts at one.
The animation-fill-mode CSS property specifies how a CSS animation should apply styles to its target before and after it is executing.
The animation will not apply any styles to the target before or after it is executing.
The target will retain the computed values set by the last keyframe encountered during execution. The last keyframe encountered depends on the value of animation-direction and animation-iteration-count
The animation will apply the values defined in the first relevant keyframe as soon as it is applied to the target, and retain this during the animation-delay period. The first relevant keyframe depends of the value of animation-direction
The animation will follow the rules for both forwards and backwards, thus extending the animation properties in both directions.
The animation-play-state CSS property determines whether an animation is running or paused. You can query this property's value to determine whether or not the animation is currently running; in addition, you can set its value to pause and resume playback of an animation.
The animation is currently playing.
The animation is currently paused.
If a background-image is specified, the background-attachment CSS property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.
This keyword means that the background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)
This keyword means that the background is fixed with regard to the viewport. Even if an element has a scrolling mechanism, a ‘fixed’ background doesn't move with the element.
This keyword means that the background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents, and the background painting area and background positioning area are relative to the scrollable area of the element rather than to the border framing them.
The background-blend-mode CSS property describes how a background should blend with the element's background that is below it and the element's background color. Background elements should be blended while content appearance should be kept unchanged.
Multiplies the complements of the backdrop and source color values, then complements the result.
Multiplies or screens the colors, depending on the backdrop color value.
Selects the darker of the backdrop and source colors.
Selects the lighter of the backdrop and source colors.
Brightens the backdrop color to reflect the source color
Darkens the backdrop color to reflect the source color.
Multiplies or screens the colors, depending on the source color value.
Darkens or lightens the colors, depending on the source color value.
Subtracts the darker of the two constituent colors from the lighter color.
Produces an effect similar to that of the Difference mode but lower in contrast.
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.
Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.
Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.
Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.
This is the default attribute which specifies no blending.
The background-clip CSS property specifies whether an element's background, either the color or image, extends underneath its border.
The background extends to the outside edge of the border (but underneath the border in z-ordering).
No background is drawn below the border (background extends to the outside edge of the padding).
The background is painted within (clipped to) the content box.
The background-repeat CSS property defines how background images are repeated.
the equivalent of repeat no-repeat
the equivalent of no-repeat repeat
The image is repeated in the given direction as much as needed to cover the whole background image painting area. The last image may be clipped if the whole thing won't fit in the remaining area.
The image is repeated in the given direction as much as needed to cover most of the background image painting area, without clipping an image. The remaining non-covered space is spaced out evenly between the images. The first and last images touches the edge of the element. The value of the background-position CSS property is ignored for the concerned direction, except if one single image is greater than the background image painting area, which is the only case where an image can be clipped when the space value is used.
The image is repeated in the given direction as much as needed to cover most of the background image painting area, without clipping an image. If it doesn't cover exactly the area, the tiles are resized in that direction in order to match it.
The image is not repeated (and hence the background image painting area will not necessarily been entirely covered). The position of the non-repeated background image is defined by the background-position CSS property.
The border-collapse CSS property selects a table's border model. This has a big influence on the look and style of the table cells.
Is a keyword requesting the use of the separated-border table rendering model. It is the default value.
Is a keyword requesting the use of the collapsed-border table rendering model.
The border-image-repeat CSS property defines how the middle part of a border image is handled so that it can match the size of the border. It has a one-value syntax which describes the behavior of all the sides, and a two-value syntax that sets a different value for the horizontal and vertical behavior.
Keyword indicating that the image must be stretched to fill the gap between the two borders.
Keyword indicating that the image must be repeated until it fills the gap between the two borders.
Keyword indicating that the image must be repeated until it fills the gap between the two borders. If the image doesn't fit after being repeated an integral number of times, the image is rescaled to fit.
Keyword indicating that all four values are inherited from their parents' calculated element value.
The border style CSS property sets the line style of the border of a box.
Like for the hidden keyword, displays no border. In that case, except if a background image is set, the calculated values of border-bottom-width will be 0, even if specified otherwise through the property. In case of table cell and border collapsing, the none value has the lowest priority: it means that if any other conflicting border is set, it will be displayed.
Like for the none keyword, displays no border. In that case, except if a background image is set, the calculated values of border-bottom-width will be 0, even if specified otherwise through the property. In case of table cell and border collapsing, the hidden value has the highest priority: it means that if any other conflicting border is set, it won't be displayed.
Displays a series of rounded dots. The spacing of the dots are not defined by the specification and are implementation-specific. The radius of the dots is half the calculated border-bottom-width.
Displays a series of short square-ended dashes or line segments. The exact size and length of the segments are not defined by the specification and are implementation-specific.
Displays a single, straight, solid line.
Displays two straight lines that add up to the pixel amount defined as border-width or border-bottom-width.
Displays a border leading to a carved effect. It is the opposite of ridge.
Displays a border with a 3D effect, like if it is coming out of the page. It is the opposite of groove.
Displays a border that makes the box appear embedded. It is the opposite of outset. When applied to a table cell with border-collapse set to collapsed, this value behaves like groove.
Displays a border that makes the box appear in 3D, embossed. It is the opposite of inset. When applied to a table cell with border-collapse set to collapsed, this value behaves like ridge.
The border style CSS property sets the width of the border of a box.
A thin border
A medium border
A thick border
Allows to specify what happens to an element when it is broken due to a page break or column break, or for inline elements, a line break.
This keyword specifies that the box will be "sliced" across it's many fragments (if any). In other words, the box fragments won't maintain the padding, border, box-shadow, border-radius, and border-image properties across each fragment. Also, any background or background-image is drawn once and each fragment shows a small piece of the background.
The box-decoration-break (with a value of clone) allows you to maintain the padding, border, box-shadow, border-radius, and border-image properties within each fragment. It also allows any background to be drawn independently in each fragment of the element. A no-repeat background-image will be rendered once in each fragment of the element.
The box-sizing CSS property is used to alter the default CSS box model used to calculate widths and heights of elements.
The width and height properties include the padding and border, but not the margin. This is the box model used by Internet Explorer when the document is in Quirks mode.
The width and height properties include the padding size, and do not include the border or margin.
This is the default style as specified by the CSS standard. The width and height properties are measured including only the content, but not the border, margin, or padding.
The caption-side CSS property positions the content of a table's <caption> on the specified side.
The caption box will be above the table.
The caption box will be below the table.
The caption-side CSS property positions the content of a table's <caption> on the specified side.
The element is not moved down to clear past floating elements.
The element is moved down to clear past left floats.
The element is moved down to clear past right floats.
The element is moved down to clear past both left and right floats.
The column-fill CSS property controls how contents are partitioned into columns. Contents are either balanced, which means that contents in all columns will have the same height or, when using auto, just take up the room the content needs.
Is a keyword indicating that columns are filled sequentially.
Is a keyword indicating that content is equally divided between columns.
The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
The element does not span multiple columns.
The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appears. The element establishes a new block formatting context.
An object implementing the CSSRule DOM interface represents a single CSS at-rule. References to a CSSRule-implementing object may be obtained by looking at a CSS style sheet's cssRules list.
Represents the textual representation of the rule, e.g. "h1,h2 { font-size: 16pt }"
Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an @media block, the parent rule would be that CSSMediaRule.
Returns the CSSStyleSheet object for the style sheet that contains this rule
One of the Type constants indicating the type of CSS rule.
CSS rule types
A CSSStyleDeclaration is an interface to the declaration block returned by the style property of a cssRule in a stylesheet, when the rule is a CSSStyleRule.
The CSS align-content property aligns a flex container's lines within the flex container when there is extra space on the cross-axis. This property has no effect on single line flexible boxes.
The CSS align-items property aligns flex items of the current flex line the same way as justify-content but in the perpendicular direction.
The align-self CSS property aligns flex items of the current flex line overriding the align-items value. If any of the flex item's cross-axis margin is set to auto, then align-self is ignored.
The CSS all shorthand property resets all properties, but unicode-bidi and direction to their initial or inherited value.
The animation CSS property is a shorthand property for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction and animation-fill-mode.
The animation-delay CSS property specifies when the animation should start. This lets the animation sequence begin some time after it's applied to an element.
The animation-direction CSS property indicates whether the animation should play in reverse on alternate cycles.
The animation-duration CSS property specifies the length of time that an animation should take to complete one cycle.
The animation-fill-mode CSS property specifies how a CSS animation should apply styles to its target before and after it is executing.
The animation-iteration-count CSS property defines the number of times an animation cycle should be played before stopping.
The animation-name CSS property specifies a list of animations that should be applied to the selected element. Each name indicates a @keyframes at-rule that defines the property values for the animation sequence.
The animation-play-state CSS property determines whether an animation is running or paused. You can query this property's value to determine whether or not the animation is currently running; in addition, you can set its value to pause and resume playback of an animation.
The CSS animation-timing-function property specifies how a CSS animation should progress over the duration of each cycle.
The CSS backface-visibility property determines whether or not the back face of the element is visible when facing the user. The back face of an element always is a transparent background, letting, when visible, a mirror image of the front face be displayed.
The background CSS property is a shorthand for setting the individual background values in a single place in the style sheet. background can be used to set the values for one or more of: background-clip, background-color, background-image, background-origin, background-position, background-repeat, background-size, and background-attachment.
If a background-image is specified, the background-attachment CSS property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.
The background-blend-mode CSS property describes how a background should blend with the element's background that is below it and the element's background color. Background elements should be blended while content appearance should be kept unchanged.
The background-clip CSS property specifies whether an element's background, either the color or image, extends underneath its border.
The background-color CSS property sets the background color of an element, either through a color value or the keyword transparent.
The CSS background-image property sets one or several background images for an element. The images are drawn on successive stacking context layers, with the first specified being drawn as if it is the closest to the user. The borders of the element are then drawn on top of them, and the background-color is drawn beneath them.
The background-origin CSS property determines the background positioning area, that is the position of the origin of an image specified using the background-image CSS property.
The background-position CSS property sets the initial position, relative to the background position layer defined by background-origin for each defined background image.
The background-repeat CSS property defines how background images are repeated. A background image can be repeated along the horizontal axis, the vertical axis, both, or not repeated at all. When the repetition of the image tiles doesn't let them exactly cover the background, the way adjustments are done can be controlled by the author: by default, the last image is clipped, but the different tiles can instead be re-sized, or space can be inserted between the tiles.
The background-size CSS property specifies the size of the background images. The size of the image can be fully constrained or only partially in order to preserve its intrinsic ratio.
The border CSS property is a shorthand property for setting the individual border property values in a single place in the style sheet. border can be used to set the values for one or more of: border-width, border-style, border-color.
The border-bottom CSS property is a shorthand that sets the values of border-bottom-color, border-bottom-style, and border-bottom-width. These properties describe the bottom border of elements.
The border-bottom-color CSS property sets the color of the bottom border of an element. Note that in many cases the shorthand CSS properties border-color or border-bottom are more convenient and preferable.
The border-bottom-left-radius CSS property sets the rounding of the bottom-left corner of the element. The rounding can be a circle or an ellipse, or if one of the value is 0 no rounding is done and the corner is square.
The border-bottom-right-radius CSS property sets the rounding of the bottom-right corner of the element. The rounding can be a circle or an ellipse, or if one of the value is 0 no rounding is done and the corner is square.
The border-bottom-style CSS property sets the line style of the bottom border of a box.
The border-bottom-width CSS property sets the width of the bottom border of a box.
The border-collapse CSS property selects a table's border model. This has a big influence on the look and style of the table cells.
The border-color CSS property is a shorthand for setting the color of the four sides of an element's border: border-top-color, border-right-color, border-bottom-color, border-left-color
The border-image CSS property allows drawing an image on the borders of elements. This makes drawing complex looking widgets much simpler than it has been and removes the need for nine boxes in some cases.
The border-image-outset property describes, by which amount the border image area extends beyond the border box.
The border-image-repeat CSS property defines how the middle part of a border image is handled so that it can match the size of the border. It has a one-value syntax which describes the behavior of all the sides, and a two-value syntax that sets a different value for the horizontal and vertical behavior.
The border-image-slice CSS property divides the image specified by border-image-source in nine regions: the four corners, the four edges and the middle. It does this by specifying 4 inwards offsets.
The border-image-source CSS property defines the <image> to use instead of the style of the border. If this property is set to none, the style defined by border-style is used instead.
The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
The border-left CSS property is a shorthand that sets the values of border-left-color, border-left-style, and border-left-width. These properties describe the left border of elements.
The border-left-color CSS property sets the color of the bottom border of an element. Note that in many cases the shorthand CSS properties border-color or border-left are more convenient and preferable.
The border-left-style CSS property sets the line style of the left border of a box.
The border-left-width CSS property sets the width of the left border of a box.
The border-radius CSS property allows Web authors to define how rounded border corners are. The curve of each corner is defined using one or two radii, defining its shape: circle or ellipse.
The border-right CSS property is a shorthand that sets the values of border-right-color, border-right-style, and border-right-width. These properties describe the right border of elements.
The border-right-color CSS property sets the color of the right border of an element. Note that in many cases the shorthand CSS properties border-color or border-right are more convenient and preferable.
The border-right-style CSS property sets the line style of the right border of a box.
The border-right-width CSS property sets the width of the right border of a box.
The border-spacing CSS property specifies the distance between the borders of adjacent cells (only for the separated borders model). This is equivalent to the cellspacing attribute in presentational HTML, but an optional second value can be used to set different horizontal and vertical spacing.
The border-style CSS property is a shorthand property for setting the line style for all four sides of the elements border.
The border-top CSS property is a shorthand that sets the values of border-top-color, border-top-style, and border-top-width. These properties describe the top border of elements.
The border-top-color CSS property sets the color of the top border of an element. Note that in many cases the shorthand CSS properties border-color or border-top are more convenient and preferable.
The border-top-left-radius CSS property sets the rounding of the top-left corner of the element. The rounding can be a circle or an ellipse, or if one of the value is 0 no rounding is done and the corner is square.
The border-top-right-radius CSS property sets the rounding of the top-right corner of the element. The rounding can be a circle or an ellipse, or if one of the value is 0 no rounding is done and the corner is square.
The border-top-style CSS property sets the line style of the top border of a box.
The border-top-width CSS property sets the width of the top border of a box.
The border-width CSS property sets the width of the border of a box. Using the shorthand property border is often more convenient.
The bottom CSS property participates in specifying the position of positioned elements.
For absolutely positioned elements, that is those with position: absolute or position: fixed, it specifies the distance between the bottom margin edge of the element and the bottom edge of its containing block.
For relatively positioned elements, that is those with position: relative, it specifies the distance the element is moved above its normal position.
Allows to specify what happens to an element when it is broken due to a page break or column break, or for inline elements, a line break.
The box-shadow CSS property describes one or more shadow effects as a comma-separated list. It allows casting a drop shadow from the frame of almost any element.
The box-sizing CSS property is used to alter the default CSS box model used to calculate widths and heights of elements.
The caption-side CSS property positions the content of a table's <caption> on the specified side.
The clear CSS property specifies whether an element can be next to floating elements that precede it or must be moved down (cleared) below them.
The clip CSS property defines what portion of an element is visible. The clip property applies only to elements with position:absolute.
The CSS color property sets the foreground color of an element's text content, and its decorations. It doesn't affect any other characteristic of the element; it should really be called text-color and would have been named so, save for historical reasons and its appearance in CSS Level 1.
The columns CSS property is a shorthand property allowing to set both the column-width and the column-count properties at the same time.
The column-count CSS property describes the number of columns of the element.
The column-fill CSS property controls how contents are partitioned into columns. Contents are either balanced, which means that contents in all columns will have the same height or, when using auto, just take up the room the content needs.
The column-gap CSS property sets the size of the gap between columns for elements which are specified to display as a multi-column element.
In multi-column layouts, the column-rule CSS property specifies a straight line, or "rule", to be drawn between each column. It is a convenient shorthand to avoid setting each of the individual column-rule-* properties separately : column-rule-width, column-rule-style and column-rule-color.
The column-rule-color CSS property lets you set the color of the rule drawn between columns in multi-column layouts.
The column-rule-style CSS property lets you set the style of the rule drawn between columns in multi-column layouts.
The column-rule-width CSS property lets you set the width of the rule drawn between columns in multi-column layouts.
The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
The column-width CSS property suggests an optimal column width. This is not a absolute value but a mere hint. Browser will adjust the width of the column around that suggested value, allowing to achieve scalable designs that fit different screen size. Especially in presence of the column-count CSS property which has precedence, to set an exact column width, all length values must be specified. In horizontal text these are width, column-width, column-gap, and column-rule-width.
The content CSS property is used with the ::before and ::after pseudo-elements to generate content in an element. Objects inserted using the content property are anonymous replaced elements.
The counter-increment CSS property is used to increase the value of CSS Counters by a given value. The counter's value can be reset using the counter-reset CSS property.
The counter-reset CSS property is used to reset CSS Counters to a given value.
The float CSS property specifies that an element should be taken from the normal flow and placed along the left or right side of its container, where text and inline elements will wrap around it. A floating element is one where the computed value of float is not none.
The cssText property sets or returns the contents of a style declaration as a string.
The cursor CSS property specifies the mouse cursor displayed when the mouse pointer is over an element.
Set the direction CSS property to match the direction of the text: rtl for Hebrew or Arabic text and ltr for other scripts. This is typically done as part of the document (e.g., using the dir attribute in HTML) rather than through direct use of CSS.
The display CSS property specifies the type of rendering box used for an element. In HTML, default display property values are taken from behaviors described in the HTML specifications or from the browser/user default stylesheet. The default value in XML is inline.
The dominant-baseline property is used to determine or re-determine a scaled-baseline-table.
Sets or retrieves a value that indicates the color to paint the interior of the given graphical element.
Sets or retrieves a value that specifies the opacity of the painting operation that is used to paint the interior of the current object.
Sets or retrieves a value that indicates the algorithm that is to be used to determine what parts of the canvas are included inside the shape.
The CSS filter property provides for effects like blurring or color shifting on an element’s rendering before the element is displayed. Filters are commonly used to adjust the rendering of an image, a background, or a border.
The flex CSS property is a shorthand property specifying the ability of a flex item to alter its dimensions to fill available space. Flex items can be stretched to use available space proportional to their flex grow factor or their flex shrink factor to prevent overflow.
The CSS flex-basis property specifies the flex basis which is the initial main size of a flex item.
The CSS flex-direction property specifies how flex items are placed in t
The CSS flex-flow property is a shorthand property for flex-direction and flex-wrap individual properties.
The CSS flex-grow property specifies the flex grow factor of a flex item.
The CSS flex-shrink property specifies the flex shrink factor of a flex item.
The CSS flex-wrap property specifies whether the children are forced into a single line or if the items can be flowed on multiple lines.
The flood-color attribute indicates what color to use to flood the current filter primitive subregion defined through the <feflood> element. The keyword currentColor and ICC colors can be specified in the same manner as within a <paint> specification for the fill and stroke attributes.
The flood-opacity attribute indicates the opacity value to use across the current filter primitive subregion defined through the <feflood> element.
The font CSS property is either a shorthand property for setting font-style, font-variant, font-weight, font-size, line-height and font-family, or a way to set the element's font to a system font, using specific keywords.
The font-family CSS property allows for a prioritized list of font family names and/or generic family names to be specified for the selected element. Unlike most other CSS properties, values are separated by a comma to indicate that they are alternatives. The browser will select the first font on the list that is installed on the computer, or that can be downloaded using the information provided by a @font-face at-rule.
The font-feature-settings CSS property allows control over advanced typographic features in OpenType fonts.
The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text. This property controls metric kerning - that utilizes adjustment data contained in the font.
The ‘font-language-override’ property allows authors to explicitly specify the language system of the font, overriding the language system implied by the content language.
The font-size CSS property specifies the size of the font – specifically the desired height of glyphs from the font. Setting the font size may, in turn, change the size of other items, since it is used to compute the value of em and ex length units.
The font-size-adjust CSS property specifies that font size should be chosen based on the height of lowercase letters rather than the height of capital letters.
The font-stretch CSS property selects a normal, condensed, or expanded face from a font.
The font-style CSS property allows italic or oblique faces to be selected within a font-family.
This value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.
The font-variant CSS property selects a normal, or small-caps face from a font family. Setting font-variant is also possible by using the font shorthand.
Fonts can provide alternate glyphs in addition to default glyph for a character. This property provides control over the selection of these alternate glyphs.
The font-variant-caps property allows the selection of alternate glyphs used for small or petite capitals or for titling. These glyphs are specifically designed to blend well with the surrounding normal glyphs, to maintain the weight and readability which suffers when text is simply resized to fit this purpose.
The font-variant-east-asian property allows control of glyph substitution and sizing in East Asian text.
font-variant-ligatures is a CSS property to control ligatures in text.
The font-variant-numeric property specifies control over numerical forms. Within normal paragraph text, proportional numbers are used while tabular numbers are used so that columns of numbers line up properly
The font-variant-position property is used to enable typographic subscript and superscript glyphs. These are alternate glyphs designed within the same em-box as default glyphs and are intended to be laid out on the same baseline as the default glyphs, with no resizing or repositioning of the baseline. They are explicitly designed to match the surrounding text and to be more readable without affecting the line height.
The font-weight CSS property specifies the weight or boldness of the font. However, some fonts are not available in all weights; some are available only on normal and bold.
The grid property in CSS is the foundation of Grid Layout.
Lays out one or more grid items bound by 4 grid lines. Shorthand for setting grid-column-start, grid-column-end, grid-row-start, and grid-row-end in a single declaration.
hanges default size of columns. Creates implicit grid tracks when a grid item is placed into a row or column that is not explicitly sized (by grid-template-rows or grid-template-columns). This property (with grid-auto-rows) specifies the default size of such implicitly-created tracks.
Automatically places grid elements into the grid layout if an explicit location is not designated. Designates the direction of the the flow and whether rows or columns must be added to accommodate the element.
Specifies the automatic default location if a grid container does not specify automatic-placement strategy via grid-auto-flow.
Changes default size of grid rows. Creates implicit grid tracks when a grid item is placed into a row that is not explicitly sized (by grid-template-rows ) or when the auto-placement algorithm has generated additional rows. This property (with grid-auto-columns) specifies the size of such implicitly-created tracks.
The grid-columns property specifies the width of each column in the grid.
Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area . A grid item's placement in a grid area consists of a grid position and a grid span.
Controls a grid item's placement in a grid area as well as grid position and a grid span. The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
Gets or sets a value that indicates which row an element within a Grid should appear in. Shorthand for setting grid-row-start and grid-row-end in a single declaration.
A grid item's placement in a grid area consists of a grid position and a grid span. The grid-row-start property (with grid-row-end, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span. The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.
Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties. The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
Specifies (with grid-template-columns) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
Specifies (with grid-template-rows) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
The height CSS property specifies the height of the content area of an element. The content area is inside the padding, border, and margin of the element.
The hyphens CSS property tells the browser how to go about splitting words to improve the layout of text when line-wrapping.
The icon property provides the author the ability to style an element with an iconic equivalent.
The image-rendering CSS property provides a hint to the user agent about how to handle its image rendering.
The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as 'background-image'). The intrinsic resolution of an image is used to determine the image's intrinsic dimensions.
The image-orientation CSS property describes how to correct the default orientation of an image.
The ime-mode CSS property controls the state of the input method editor for text fields.
The CSS justify-content property defines how a browser distributes available space between and around elements when aligning flex items in the main-axis of the current line.
The left CSS property specifies part of the position of positioned elements.
The letter-spacing CSS property specifies spacing behavior between text characters.
The ‘lighting-color’ property defines the color of the light source for filter primitives ‘feDiffuseLighting’ and ‘feSpecularLighting’.
On block level elements, the line-height CSS property specifies the minimal height of line boxes within the element.
On non-replaced inline elements, line-height specifies the height that is used in the calculation of the line box height.
On replaced inline elements, like buttons or other input element, line-height has no effect.
The list-style CSS property is a shorthand property for setting list-style-type, list-style-image and list-style-position.
The list-style-image CSS property sets the image that will be used as the list item marker. It is often more convenient to use the shorthand list-style.
The list-style-position CSS property specifies the position of the marker box in the principal block box. It is often more convenient to use the shortcut list-style.
The list-style-type CSS property specifies appearance of a list item element. As it is the only one who defaults to display:list-item, this is usually a <li< element, but can be any element with this display value.
The margin CSS property sets the margin for all four sides. It is a shorthand to avoid setting each side separately with the other margin properties: margin-top, margin-right, margin-bottom and margin-left.
The margin-bottom CSS property of an element sets the margin space required on the bottom of an element. A negative value is also allowed.
The margin-left CSS property of an element sets the margin space required on the left side of a box associated with an element. A negative value is also allowed.
The margin-right CSS property of an element sets the margin space required on the right side of an element. A negative value is also allowed.
The margin-top CSS property of an element sets the margin space required on the top of an element. A negative value is also allowed.
The marks CSS property adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets.
The CSS mask-type properties defines if a SVG <mask> element is a luminance or an alpha mask.
The max-height CSS property is used to set the maximum height of a given element. It prevents the used value of the height property from becoming larger than the value specified for max-height.
The max-width CSS property is used to set the maximum width of a given element. It prevents the used value of the width property from becoming larger than the value specified for max-width.
The min-height CSS property is used to set the minimum height of a given element. It prevents the used value of the height property from becoming smaller than the value specified for min-height.
The min-width CSS property is used to set the minimum width of a given element. It prevents the used value of the width property from becoming smaller than the value specified for min-width.
The mix-blend-mode CSS property describes how an element content should blend with the content of the element that is below it and the element's background.
The nav-down property specifies where to navigate when using the arrow-down navigation key.
The nav-index property specifies the sequential navigation order ("tabbing order") for an element.
The nav-left property specifies where to navigate when using the arrow-left navigation key.
The nav-right property specifies where to navigate when using the arrow-right navigation key.
The nav-up property specifies where to navigate when using the arrow-up navigation key.
The ‘object-fit’ property specifies how the contents of a replaced element should be fitted to the box established by its used height and width.
The ‘object-position’ property determines the alignment of the replaced element inside its box
The opacity CSS property specifies the transparency of an element, that is, the degree to which the background behind the element is overlaid.
The CSS order property specifies the order used to lay out flex items in their flex container. Elements are laid out by ascending order of the order value. Elements with the same order value are laid out in the order they appear in the source code.
The orphans CSS property refers to the minimum number of lines in a block container that must be left at the bottom of the page. This property is normally used to control how page breaks occur.
The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style, outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
The outline-color CSS property sets the color of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out.
The outline-offset CSS property is used to set space between an outline and the edge or border of an element. An outline is a line that is drawn around elements, outside the border edge.
The outline-style CSS property is used to set the style of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out.
The outline-width CSS property is used to set the width of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out:
The overflow CSS property specifies whether to clip content, render scroll bars or display overflow content of a block-level element.
The word-wrap CSS property is used to specify whether or not the browser may break lines within words in order to prevent overflow (in other words, force wrapping) when an otherwise unbreakable string is too long to fit in its containing box.
The overflow-x CSS property specifies whether to clip content, render a scroll bar or display overflow content of a block-level element, when it overflows at the left and right edges.
The overflow-y CSS property specifies whether to clip content, render a scroll bar, or display overflow content of a block-level element, when it overflows at the top and bottom edges.
The padding CSS property sets the required padding space on all sides of an element. The padding area is the space between the content of the element and its border. Negative values are not allowed.
The padding-bottom CSS property of an element sets the height of the padding area at the bottom of an element. The padding area is the space between the content of the element and it's border. Contrary to margin-bottom values, negative values of padding-bottom are invalid.
The padding-left CSS property of an element sets the padding space required on the left side of an element. The padding area is the space between the content of the element and it's border. A negative value is not allowed.
The padding-right CSS property of an element sets the padding space required on the right side of an element. The padding area is the space between the content of the element and its border. Negative values are not allowed.
The padding-top CSS property of an element sets the padding space required on the top of an element. The padding area is the space between the content of the element and its border. Contrary to margin-top values, negative values of padding-top are invalid.
The page-break-after CSS property adjusts page breaks after the current element.
The page-break-before CSS property adjusts page breaks before the current element.
The page-break-inside CSS property adjusts page breaks inside the current element.
The perspective CSS property determines the distance between the z=0 plane and the user in order to give to the 3D-positioned element some perspective.
The perspective CSS property determines the distance between the z=0 plane and the user in order to give to the 3D-positioned element some perspective.
The CSS property pointer-events allows authors to control under what circumstances (if any) a particular graphic element can become the target of mouse events. When this property is unspecified, the same characteristics of the visiblePainted value apply to SVG content.
The position CSS property chooses alternative rules for positioning elements, designed to be useful for scripted animation effects.
The quotes CSS property indicates how user agents should render quotation marks.
The resize CSS property lets you control the resizability of an element.
The right CSS property specifies part of the position of positioned elements.
The table-layout CSS property defines the algorithm to be used to layout the table cells, rows, and columns.
The tab-size CSS property is used to customize the width of a tab (U+0009) character.
The text-align CSS property describes how inline content like text is aligned in its parent block element. text-align does not control the alignment of block elements itself, only their inline content.
The text-align-last CSS property describes how the last line of a block or a line, right before a forced line break, is aligned.
The text-decoration CSS property is used to set the text formatting to underline, overline, line-through or blink.
The text-decoration-color CSS property sets the color used when drawing underlines, overlines, or strike-throughs specified by text-decoration-line.
The text-decoration-line CSS property sets what kind of line decorations are added to an element.
The text-decoration-style CSS property defines the style of the lines specified by text-decoration-line. The style applies to all lines, there is no way to define different style for each of the line defined by text-decoration-line.
The text-indent CSS property specifies how much horizontal space should be left before the beginning of the first line of the text content of an element. Horizontal spacing is with respect to the left (or right, for right-to-left layout) edge of the containing block element's box.
The text-overflow CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, or display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string.
The text-rendering CSS property provides information to the rendering engine about what to optimize for when rendering text.
The text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and text-decorations of the element.
The text-transform CSS property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
The CSS text-underline-position property specifies the position of the underline which is set using the text-decoration property underline value.
The top CSS property specifies part of the position of positioned elements. It has no effect on non-positioned elements.
Determines whether touch input may trigger default behavior supplied by the user agent, such as panning or zooming.
The CSS transform property lets you modify the coordinate space of the CSS visual formatting model. Using it, elements can be translated, rotated, scaled, and skewed according to the values set.
The transform-origin CSS property lets you modify the origin for transformations of an element.
The transform-style CSS property determines if the children of the element are positioned in the 3D-space or are flattened in the plane of the element.
The CSS transition property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay.
The transition-delay CSS property specifies the amount of time to wait between a change being requested to a property that is to be transitioned and the start of the transition effect.
The transition-duration CSS property specifies the number of seconds or milliseconds a transition animation should take to complete. By default, the value is 0s, meaning that no animation will occur.
The transition-property CSS property is used to specify the names of CSS properties to which a transition effect should be applied.
The CSS transition-timing-function property is used to describe how the intermediate values of the CSS properties being affected by a transition effect are calculated. This in essence lets you establish an acceleration curve, so that the speed of the transition can vary over its duration.
The unicode-bidi CSS property together with the direction property relates to the handling of bidirectional text in a document.
The unicode-range CSS descriptor sets the specific range of characters to be downloaded from a font defined by @font-face and made available for use on the current page.
The vertical-align CSS property specifies the vertical alignment of an inline or table-cell box.
The white-space CSS property is used to to describe how whitespace inside the element is handled.
The widows CSS property defines how many minimum lines must be left on top of a new page, on a paged media.
The width CSS property specifies the width of the content area of an element. The content area is inside the padding, border, and margin of the element.
The will-change property provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.
The word-break CSS property is used to specify how (or if) to break lines within words.
The word-spacing CSS property specifies spacing behavior between tags and words.
The word-wrap CSS property is used to specify whether or not the browser may break lines within words in order to prevent overflow (in other words, force wrapping) when an otherwise unbreakable string is too long to fit in its containing box.
CSS Writing Modes Level 3 defines CSS features to support various international script modes, such as left-to-right (e.g., Latin and Indic), right-to-left (e.g., Hebrew and Arabic), bidirectional (e.g., mixed Latin and Arabic) and vertical (e.g., Asian). This article is about the CSS writing-mode property.
The z-index CSS property specifies the z-order of an element and its descendants. When elements overlap, z-order determines which one covers the other. An element with a larger z-index generally covers an element with a lower one.
Returns the optional priority, "important". Example: priString= styleObj.getPropertyPriority('color')
Returns the property value. Example: valString= styleObj.getPropertyValue('color')
Returns a property name. Example: nameString= styleObj.item(0) Alternative: nameString= styleObj[0]
Returns the value deleted. Example: valString= styleObj.removeProperty('color')
No return. Example: styleObj.setProperty('color', 'red', 'important')
No return. Example: styleObj.setProperty('color', 'red', 'important')
An object implementing the CSSStyleSheet interface represents a single CSS style sheet.
Returns a CSSRuleList of the CSS rules in the style sheet.
If this style sheet is imported into the document using an @import rule, the ownerRule property will return that CSSImportRule, otherwise it returns null.
Deletes a rule from the style sheet.
is a number representing the position of the rule.
Inserts a new style rule into the current style sheet.
is a DOMString containing the rule to be inserted (selector and declaration).
is a unsigned int representing the position to be inserted.
The index within the style sheet's rule collection of the newly inserted rule.
The value is a custom value.
The value is inherited and the cssText contains "inherit".
The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
A string representation of the current value.
A code defining the type
The browser determines the cursor to display based on the current context.
E.g. equivalent to text when hovering text.
Default cursor, typically an arrow.
No cursor is rendered.
A context menu is available under the cursor. Only IE 10 and up have implemented this on Windows
Indicating help is available.
E.g. used when hovering over links, typically a hand.
The program is busy in the background but the user can still interact with the interface (unlike for wait).
The program is busy (sometimes an hourglass or a watch).
Indicating that cells can be selected.
Cross cursor, often used to indicate selection in a bitmap.
Indicating text can be selected, typically an I-beam.
Indicating that vertical text can be selected, typically a sideways I-beam.
Indicating an alias or shortcut is to be created.
Indicating that something can be copied.
The hovered object may be moved.
Cursor showing that a drop is not allowed at the current location.
Cursor showing that something cannot be done.
Cursor showing that something can be scrolled in any direction (panned).
The item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating.
The item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.
Some edge is to be moved.
Some edge is to be moved.
Some edge is to be moved.
Some edge is to be moved.
Some edge is to be moved.
Some edge is to be moved.
Some edge is to be moved.
Some edge is to be moved.
Indicates a bidirectional resize cursor.
Indicates a bidirectional resize cursor.
Indicates a bidirectional resize cursor.
Indicates a bidirectional resize cursor.
Indicates that something can be zoomed (magnified) in or out.
Indicates that something can be zoomed (magnified) in or out.
Indicates that something can be grabbed (dragged to be moved).
Indicates that something can be grabbed (dragged to be moved).
Set the direction CSS property to match the direction of the text: rtl for Hebrew or Arabic text and ltr for other scripts. This is typically done as part of the document (e.g., using the dir attribute in HTML) rather than through direct use of CSS.
The initial value of direction (that is, if not otherwise specified). Text and other elements go from left to right.
Text and other elements go from right to left
The display CSS property specifies the type of rendering box used for an element. In HTML, default display property values are taken from behaviors described in the HTML specifications or from the browser/user default stylesheet. The default value in XML is inline.
Turns off the display of an element (it has no effect on layout); all descendant elements also have their display turned off. The document is rendered as though the element did not exist.
To render an element box's dimensions, yet have its contents be invisible, see the visibility property.
The element generates one or more inline element boxes.
The element generates a block element box.
The element generates a block box for the content and a separate list-item inline box.
The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would)
The inline-table value does not have a direct mapping in HTML. It behaves like a <table> HTML element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context.
Behaves like the <table> HTML element. It defines a block-level box.
Behaves like the <caption> HTML element.
Behaves like the <td> HTML element
These elements behave like the corresponding <col> HTML elements.
These elements behave like the corresponding <colgroup> HTML elements.
These elements behave like the corresponding <tfoot> HTML elements
These elements behave like the corresponding <thead> HTML elements
Behaves like the <tr> HTML element
These elements behave like the corresponding <tbody> HTML elements
The element behaves like a block element and lays out its content according to the flexbox model.
The element behaves like an inline element and lays out its content according to the flexbox model.
The element behaves like a block element and lay out its content according to the grid model.
The element behaves like an inline element and lay out its content according to the grid model.
If this property occurs on a block or inline-block element, then the user agent behavior depends on the value of the 'script' property. If the value of the script property is 'auto', the 'auto' value is equivalent to 'alphabetic' for horizontal 'writing-mode' values and 'central' for vertical 'writing-mode' values. If the value of the script property is other than 'auto', the 'auto' value is equivalent to 'use-script'
The dominant baseline-identifier is set using the computed value of the 'script' property. The 'writing-mode' value, whether horizontal or vertical is used to select the baseline-table that correspond to that baseline-identifier.
The dominant baseline-identifier, the baseline-table and the baseline-table font-size remain the same as that of the parent.
The dominant baseline-identifier and the baseline table remain the same, but the baseline-table font-size is changed to the value of the 'font-size' property on this element. This re-scales the baseline table for the current 'font-size'.
The dominant baseline-identifier is set to the 'alphabetic' baseline.
The dominant baseline-identifier is set to the 'hanging' baseline.
The dominant baseline-identifier is set to the 'ideographic' baseline.
The dominant baseline-identifier is set to the 'mathematical' baseline.
The dominant baseline-identifier is set to be 'central'. The derived baseline-table is constructed from the defined baselines in a baseline-table in the nominal font.
The dominant baseline-identifier is set to be 'middle'. The derived baseline-table is constructed from the defined baselines in a baseline-table in the nominal font.
The dominant baseline-identifier is set to be 'text-after-edge'. The derived baseline-table is constructed from the defined baselines in a baseline-table in the nominal font.
The dominant baseline-identifier is set to be 'text-before-edge'. The derived baseline-table is constructed from the defined baselines in a baseline-table in the nominal font.
The empty-cells CSS property specifies how user agents should render borders and backgrounds around cells that have no visible content.
Is a keyword indicating that borders and backgrounds should be drawn like in a normal cells.
Is a keyword indicating that no border or backgrounds should be drawn.
The flex container's main-axis is defined to be the same as the text direction. The main-start and main-end points are the same as the content direction.
Behaves the same as row but the main-start and main-end points are permuted.
The flex container's main-axis is the same as the block-axis. The main-start and main-end points are the same as the before and after points of the writing-mode.
Behaves the same as column but the main-start and main-end are permuted.
The CSS flex-wrap property specifies whether the children are forced into a single line or if the items can be flowed on multiple lines.
The flex items are laid out in a single line which may cause the flex container to overflow. The cross-start is either equivalent to start or before depending flex-direction value.
The flex items break into multiple lines. The cross-start is either equivalent to start or before depending flex-direction value and the cross-end is the opposite of the specified cross-start.
Behaves the same as wrap but cross-start and cross-end are permuted.
The float CSS property specifies that an element should be taken from the normal flow and placed along the left or right side of its container, where text and inline elements will wrap around it. A floating element is one where the computed value of float is not none.
Is a keyword indicating that the element must not float.
Is a keyword indicating that the element must float on the left side of its containing block.
Is a keyword indicating that the element must float on the right side of its containing block.
The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text. This property controls metric kerning - that utilizes adjustment data contained in the font.
Specifies kerning is not applied
Specifies kerning is applied. Fonts that do not include kerning data are unaffected by this setting.
Used to specify kerning is at the discretion of the user agent.
The font-stretch CSS property selects a normal, condensed, or expanded face from a font.
Specifies a normal font face.
Specifies a font face more condensed than normal, with ultra-condensed as the most condensed.
Specifies a font face more condensed than normal, with ultra-condensed as the most condensed.
Specifies a font face more condensed than normal, with ultra-condensed as the most condensed.
Specifies a font face more condensed than normal, with ultra-condensed as the most condensed.
Specifies a font face more expanded than normal, with ultra-expanded as the most expanded.
Specifies a font face more expanded than normal, with ultra-expanded as the most expanded.
Specifies a font face more expanded than normal, with ultra-expanded as the most expanded.
Specifies a font face more expanded than normal, with ultra-expanded as the most expanded.
The font-style CSS property allows italic or oblique faces to be selected within a font-family.
Selects a font that is classified as normal within a font-family
Selects a font that is labeled italic, if that is not available, one labeled oblique
Selects a font that is labeled oblique
This value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.
user agent is not allowed to synthesize bold or oblique font when not available.
user agent is only allowed to synthesize bold font when not available but not oblique.
user agent is only allowed to synthesize oblique font when not available but not bold.
user agent is allowed to synthesize both bold and oblique.
The font-variant CSS property selects a normal, or small-caps face from a font family. Setting font-variant is also possible by using the font shorthand.
Specifies a normal font face.
Specifies a font that is labeled as a small-caps font. If a small-caps font is not available, Mozilla (Firefox) and other browsers will simulate a small-caps font, i.e. by taking a normal font and replacing the lowercase letters by scaled uppercase characters.
The font-variant-caps property allows the selection of alternate glyphs used for small or petite capitals or for titling. These glyphs are specifically designed to blend well with the surrounding normal glyphs, to maintain the weight and readability which suffers when text is simply resized to fit this purpose.
None of the features are enabled.
Enables display of small capitals (OpenType feature: smcp). Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters.
Enables display of small capitals for both upper and lowercase letters (OpenType features: c2sc, smcp).
Enables display of petite capitals (OpenType feature: pcap).
Enables display of petite capitals for both upper and lowercase letters (OpenType features: c2pc, pcap).
Enables display of mixture of small capitals for uppercase letters with normal lowercase letters (OpenType feature: unic).
Enables display of titling capitals (OpenType feature: titl). Uppercase letter glyphs are often designed for use with lowercase letters. When used in all uppercase titling sequences they can appear too strong.
font-variant-ligatures is a CSS property to control ligatures in text.
A value of ‘normal’ specifies that common default features are enabled, as described in detail in the next section. For OpenType fonts, common ligatures and contextual forms are on by default, discretionary and historical ligatures are not.
Specifies that all types of ligatures and contextual forms covered by this property are explicitly disabled. In situations where ligatures are not considered necessary, this may improve the speed of text rendering.
Enables display of common ligatures (OpenType features: liga, clig). For OpenType fonts, common ligatures are enabled by default.
Disables display of common ligatures (OpenType features: liga, clig).
Enables display of discretionary ligatures (OpenType feature: dlig). Which ligatures are discretionary or optional is decided by the type designer, so authors will need to refer to the documentation of a given font to understand which ligatures are considered discretionary.
Disables display of discretionary ligatures (OpenType feature: dlig).
Enables display of historical ligatures (OpenType feature: hlig).
Disables display of historical ligatures (OpenType feature: hlig).
Enables display of contextual alternates (OpenType feature: calt). Although not strictly a ligature feature, like ligatures this feature is commonly used to harmonize the shapes of glyphs with the surrounding context. For OpenType fonts, this feature is on by default.
Disables display of contextual alternates (OpenType feature: calt).
The font-variant-position property is used to enable typographic subscript and superscript glyphs. These are alternate glyphs designed within the same em-box as default glyphs and are intended to be laid out on the same baseline as the default glyphs, with no resizing or repositioning of the baseline. They are explicitly designed to match the surrounding text and to be more readable without affecting the line height.
None of the features are enabled.
Enables display of subscript variants (OpenType feature: subs).
Enables display of superscript variants (OpenType feature: sups).
Automatically places grid elements into the grid layout if an explicit location is not designated. Designates the direction of the the flow and whether rows or columns must be added to accommodate the element.
Causes auto-placed grid items to be placed according to the grid-auto-position property, rather than using the auto-placement algorithm.
Fills each row in turn, adding new rows as necessary.
Fills each column in turn, adding new columns as necessary.
Uses a "dense" packing algorithm approach to fill in holes in the grid as smaller items appear.
Permanently skips cells that are not filled with the current item. The default auto-pacement algorithm packing approach.
HTML Colors
rgb( 0, 0, 0)
rgb(192, 192, 192)
rgb(128, 128, 128)
rgb(255, 255, 255)
rgb(128, 0, 0)
rgb(255, 0, 0)
rgb(128, 0, 128)
rgb(102, 51, 153)
rgb(255, 0, 255)
rgb( 0, 128, 0)
rgb( 0, 255, 0)
rgb(128, 128, 0)
rgb(255, 255, 0)
rgb( 0, 0, 128)
rgb( 0, 0, 255)
rgb( 0, 128, 128)
rgb( 0, 255, 255)
rgb(255, 165, 0)
rgb(240, 248, 255)
rgb(250, 235, 215)
rgb(127, 255, 212)
rgb(240, 255, 255)
rgb(245, 245, 220)
rgb(255, 228, 196)
rgb(255, 235, 205)
rgb(138, 43, 226)
rgb(165, 42, 42)
rgb(222, 184, 135)
rgb( 95, 158, 160)
rgb(127, 255, 0)
rgb(210, 105, 30)
rgb(255, 127, 80)
rgb(100, 149, 237)
rgb(255, 248, 220)
rgb(220, 20, 60)
rgb(0, 255, 255)
rgb( 0, 0, 139)
rgb( 0, 139, 139)
rgb(184, 134, 11)
rgb(169, 169, 169)
rgb( 0, 100, 0)
rgb(169, 169, 169)
rgb(189, 183, 107)
rgb(139, 0, 139)
rgb( 85, 107, 47)
rgb(255, 140, 0)
rgb(153, 50, 204)
rgb(139, 0, 0)
rgb(233, 150, 122)
rgb(143, 188, 143)
rgb( 72, 61, 139)
rgb( 47, 79, 79)
rgb( 47, 79, 79)
rgb( 0, 206, 209)
rgb(148, 0, 211)
rgb(255, 20, 147)
rgb( 0, 191, 255)
rgb(105, 105, 105)
rgb(105, 105, 105)
rgb( 30, 144, 255)
rgb(178, 34, 34)
rgb(255, 250, 240)
rgb( 34, 139, 34)
rgb(220, 220, 220)
rgb(248, 248, 255)
rgb(255, 215, 0)
rgb(218, 165, 32)
rgb(173, 255, 47)
rgb(128, 128, 128)
rgb(240, 255, 240)
rgb(255, 105, 180)
rgb(205, 92, 92)
rgb( 75, 0, 130)
rgb(255, 255, 240)
rgb(240, 230, 140)
rgb(230, 230, 250)
rgb(255, 240, 245)
rgb(124, 252, 0)
rgb(255, 250, 205)
rgb(173, 216, 230)
rgb(240, 128, 128)
rgb(224, 255, 255)
rgb(250, 250, 210)
rgb(211, 211, 211)
rgb(211, 211, 211)
rgb(144, 238, 144)
rgb(255, 182, 193)
rgb(255, 160, 122)
rgb( 32, 178, 170)
rgb(135, 206, 250)
rgb(119, 136, 153)
rgb(119, 136, 153)
rgb(176, 196, 222)
rgb(255, 255, 224)
rgb( 50, 205, 50)
rgb(250, 240, 230)
rgb(255, 0, 255)
rgb(102, 205, 170)
rgb( 0, 0, 205)
rgb(186, 85, 211)
rgb(147, 112, 219)
rgb( 60, 179, 113)
rgb(123, 104, 238)
rgb( 0, 250, 154)
rgb( 72, 209, 204)
rgb(199, 21, 133)
rgb( 25, 25, 112)
rgb(245, 255, 250)
rgb(255, 228, 225)
rgb(255, 228, 181)
rgb(255, 222, 173)
rgb(253, 245, 230)
rgb(107, 142, 35)
rgb(255, 69, 0)
rgb(218, 112, 214)
rgb(238, 232, 170)
rgb(152, 251, 152)
rgb(175, 238, 238)
rgb(219, 112, 147)
rgb(255, 239, 213)
rgb(255, 218, 185)
rgb(205, 133, 63)
rgb(255, 192, 203)
rgb(221, 160, 221)
rgb(176, 224, 230)
rgb(188, 143, 143)
rgb( 65, 105, 225)
rgb(139, 69, 19)
rgb(250, 128, 114)
rgb(244, 164, 96)
rgb( 46, 139, 87)
rgb(255, 245, 238)
rgb(160, 82, 45)
rgb(135, 206, 235)
rgb(106, 90, 205)
rgb(112, 128, 144)
rgb(112, 128, 144)
rgb(255, 250, 250)
rgb( 0, 255, 127)
rgb( 70, 130, 180)
rgb(210, 180, 140)
rgb(216, 191, 216)
rgb(255, 99, 71)
rgb( 64, 224, 208)
rgb(238, 130, 238)
rgb(245, 222, 179)
rgb(245, 245, 245)
rgb(154, 205, 50)
The hyphens CSS property tells the browser how to go about splitting words to improve the layout of text when line-wrapping.
Words are not broken at line breaks, even if characters inside the words suggest line break points. Lines will only wrap at whitespace.
Words are broken for line-wrapping only where characters inside the word suggest line break opportunities. See Suggesting line break opportunities for details.
The browser is free to automatically break words at appropriate hyphenation points, following whatever rules it chooses to use. Suggested line break opportunities, as covered in Suggesting line break opportunities, should be preferred over automatically selecting break points whenever possible.
The image-rendering CSS property provides a hint to the user agent about how to handle its image rendering.
Default value, the image should be scaled with an algorithm that maximizes the appearance of the image. In particular, scaling algorithms that "smooth" colors are acceptable, such as bilinear interpolation. This is intended for images such as photos. Since version 1.9 (Firefox 3.0), Gecko uses bilinear resampling (high quality).
When scaling the image up, the "nearest neighbor" or similar algorithm must be used, so that the image appears to be simply composed of very large pixels. When scaling down, this is the same as 'auto'.
The ime-mode CSS property controls the state of the input method editor for text fields.
No change is made to the current input method editor state. This is the default.
The IME state should be normal; this value can be used in a user style sheet to override the page setting. This value is not supported by Internet Explorer.
The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it. Not supported on Linux.
The input method editor is initially inactive, but the user may activate it if they wish. Not supported on Linux.
The input method editor is disabled and may not be activated by the user.
The CSS justify-content property defines how a browser distributes available space between and around elements when aligning flex items in the main-axis of the current line.
The flex items are packed starting from the main-start. Margins of the first flex item is flushed with the main-start edge of the line and each following flex item is flushed with the preceding.
The flex items are packed starting from the main-end. The margin edge of the last flex item is flushed with the main-end edge of the line and each preceding flex item is flushed with the following.
The flex items are packed toward the center of the line. The flex items are flushed with each other and aligned in the center of the line. Space between the main-start edge of the line and first item and between main-end and the last item of the line is the same.
Flex items are evenly distributed along the line. The spacing is done such as the space between two adjacent items is the same. Main-start edge and main-end edge are flushed with respectively first and last flex item edges.
Flex items are evenly distributed so that the space between two adjacent items is the same. The empty space before the first and after the last items equals half of the space between two adjacent items.
The list-style-position CSS property specifies the position of the marker box in the principal block box. It is often more convenient to use the shortcut list-style.
The marker box is outside the principal block box.
The marker box is the first inline box in the principal block box, after which the element's content flows.
The list-style-type CSS property specifies appearance of a list item element. As it is the only one who defaults to display:list-item, this is usually a <li> element, but can be any element with this display value.
The CSS mask-type properties defines if a SVG <mask> element is a luminance or an alpha mask.
Is a keyword indicating that the associated <mask> is a luminance mask, that is that its relative luminance values must be used when applying it.
Is a keyword indicating that the associated <mask> is an alpha mask, that is that its alpha channel values must be used when applying it.
The ‘object-fit’ property specifies how the contents of a replaced element should be fitted to the box established by its used height and width.
The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height.
The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height.
The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height.
The replaced content is not resized to fit inside the element's content box: determine the object's concrete object size using the default sizing algorithm with no specified size, and a default object size equal to the replaced element's used width and height.
The replaced content is not resized to fit inside the element's content box: determine the object's concrete object size using the default sizing algorithm with no specified size, and a default object size equal to the replaced element's used width and height.
The overflow CSS property specifies whether to clip content, render scroll bars or display overflow content of a block-level element.
Default value. Content is not clipped, it may be rendered outside the content box.
The content is clipped and no scrollbars are provided.
The content is clipped and desktop browsers use scrollbars, whether or not any content is clipped. This avoids any problem with scrollbars appearing and disappearing in a dynamic environment. Printers may print overflowing content.
Depends on the user agent. Desktop browsers like Firefox provide scrollbars if content overflows.
The word-wrap CSS property is used to specify whether or not the browser may break lines within words in order to prevent overflow (in other words, force wrapping) when an otherwise unbreakable string is too long to fit in its containing box.
Indicates that lines may only break at normal word break points.
Indicates that normally unbreakable words may be broken at arbitrary points if there are no otherwise acceptable break points in the line.
The page-break-after CSS property adjusts page breaks after/before the current element.
Initial value. Automatic page breaks (neither forced nor forbidden).
Always force page breaks after the element.
Avoid page breaks after the element.
Force page breaks after the element so that the next page is formatted as a left page.
Force page breaks after the element so that the next page is formatted as a right page.
The page-break-inside CSS property adjusts page breaks inside the current element.
Initial value. Automatic page breaks (neither forced nor forbidden).
Avoid page breaks after the element.
The CSS property pointer-events allows authors to control under what circumstances (if any) a particular graphic element can become the target of mouse events. When this property is unspecified, the same characteristics of the visiblePainted value apply to SVG content.
The element behaves as it would if the pointer-events property was not specified. In SVG content, this value and the value visiblePainted have the same effect.
The element is never the target of mouse events; however, mouse events may target its descendant elements if those descendants have pointer-events set to some other value. In these circumstances, mouse events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases.
SVG only. The element can only be the target of a mouse event when the visibility property is set to visible and when the mouse cursor is over the interior (i.e., 'fill') of the element and the fill property is set to a value other than none, or when the mouse cursor is over the perimeter (i.e., 'stroke') of the element and the stroke property is set to a value other than none.
SVG only. The element can only be the target of a mouse event when the visibility property is set to visible and when the mouse cursor is over the interior (i.e., fill) of the element. The value of the fill property does not effect event processing.
SVG only. The element can only be the target of a mouse event when the visibility property is set to visible and when the mouse cursor is over the perimeter (i.e., stroke) of the element. The value of the stroke property does not effect event processing.
SVG only. The element can be the target of a mouse event when the visibility property is set to visible and the mouse cursor is over either the interior (i.e., fill) or the perimeter (i.e., stroke) of the element. The values of the fill and stroke do not effect event processing.
SVG only. The element can only be the target of a mouse event when the mouse cursor is over the interior (i.e., 'fill') of the element and the fill property is set to a value other than none, or when the mouse cursor is over the perimeter (i.e., 'stroke') of the element and the stroke property is set to a value other than none. The value of the visibility property does not effect event processing.
SVG only. The element can only be the target of a mouse event when the pointer is over the interior (i.e., fill) of the element. The values of the fill and visibility properties do not effect event processing.
SVG only. The element can only be the target of a mouse event when the pointer is over the perimeter (i.e., stroke) of the element. The values of the stroke and visibility properties do not effect event processing.
SVG only. The element can only be the target of a mouse event when the pointer is over the interior (i.e., fill) or the perimeter (i.e., stroke) of the element. The values of the fill, stroke and visibility properties do not effect event processing.
The position CSS property chooses alternative rules for positioning elements, designed to be useful for scripted animation effects.
This keyword let the element use the normal behavior, that is it is laid out in its current position in the flow. The top, right, bottom, and left properties do not apply.
This keyword lays out all elements as though the element were not positioned, and then adjust the element's position, without changing layout (and thus leaving a gap for the element where it would have been had it not been positioned). The effect of position:relative on table-*-group, table-row, table-column, table-cell, and table-caption elements is undefined.
Do not leave space for the element. Instead, position it at a specified position relative to its closest positioned ancestor or to the containing block. Absolutely positioned boxes can have margins, they do not collapse with any other margins.
Do not leave space for the element. Instead, position it at a specified position relative to the screen's viewport and doesn't move when scrolled. When printing, position it at that fixed position on every page.
The box position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes. When a box B is stickily positioned, the position of the following box is calculated as though B were not offset. The effect of ‘position: sticky’ on table elements is the same as for ‘position: relative’.
The resize CSS property lets you control the resizability of an element.
The element offers no user-controllable method for resizing the element.
The element displays a mechanism for allowing the user to resize the element, which may be resized both horizontally and vertically.
The element displays a mechanism for allowing the user to resize the element, which may only be resized horizontally.
The element displays a mechanism for allowing the user to resize the element, which may only be resized vertically.
An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
Is a Boolean representing whether the current stylesheet has been applied or not.
Returns a DOMString representing the location of the stylesheet.
Returns a StyleSheet including this one, if any; returns null if there aren't any.
Returns a DOMString representing the advisory title of the current style sheet.
Returns a DOMString representing the style sheet language for this style sheet.
The StyleSheetList interface provides the abstraction of an ordered collection of style sheets.
The items in the StyleSheetList are accessible via an integral index, starting from 0.
The table-layout CSS property defines the algorithm to be used to layout the table cells, rows, and columns.
An automatic table layout algorithm is commonly used by most browsers for table layout. The width of the table and its cells depends on the content thereof.
Table and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.
The text-align CSS property describes how inline content like text is aligned in its parent block element. text-align does not control the alignment of block elements itself, only their inline content.
The same as left if direction is left-to-right and right if direction is right-to-left.
The same as right if direction is left-to-right and left if direction is right-to-left.
The inline contents are aligned to the left edge of the line box.
The inline contents are aligned to the right edge of the line box.
The inline contents are centered within the line box.
The text is justified. Text should line up their left and right edges to the left and right content edges of the paragraph.
Similar to inherit with the difference that the value start and end are calculated according the parent's direction and are replaced by the adequate left or right value.
The text-decoration CSS property is used to set the text formatting to underline, overline, line-through or blink.
Produces no text decoration.
Each line of text is underlined.
Each line of text has a line above it.
Each line of text has a line through the middle.
The text-decoration-line CSS property sets what kind of line decorations are added to an element.
Produces no text decoration.
Each line of text is underlined.
Each line of text has a line above it.
Each line of text has a line through the middle.
The text blinks (alternates between visible and invisible). Conforming user agents may simply not blink the text. This value is deprecated in favor of Animations.
The text-decoration-style CSS property defines the style of the lines specified by text-decoration-line. The style applies to all lines, there is no way to define different style for each of the line defined by text-decoration-line.
Draws a single line
Draws a double line
Draws a dotted line
Draws a dashed line
Draws a wavy line
The text-overflow CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, or display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string.
This keyword value indicates to truncate the text at the limit of the content area, therefore the truncation can happen in the middle of a character. To truncate at the transition between two characters, the empty string value ('') must be used. The value clip is the default for this property.
This keyword value indicates to display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) to represent clipped text. The ellipsis is displayed inside the content area, decreasing the amount of text displayed. If there is not enough space to display the ellipsis, it is clipped.
The text-rendering CSS property provides information to the rendering engine about what to optimize for when rendering text.
The browser makes educated guesses about when to optimize for speed, legibility, and geometric precision while drawing text. For differences in how this value is interpreted by the browser, see the compatibility table.
The browser emphasizes rendering speed over legibility and geometric precision when drawing text. It disables kerning and ligatures.
The browser emphasizes legibility over rendering speed and geometric precision. This enables kerning and optional ligatures.
The browser emphasizes geometric precision over rendering speed and legibility. Certain aspects of fonts—such as kerning—don't scale linearly, so geometricPrecision can make text using those fonts look good.
The text-transform CSS property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
Is a keyword forcing the first letter of each word to be converted to uppercase.
Is a keyword forcing all characters to be converted to uppercase.
Is a keyword forcing all characters to be converted to lowercase.
Is a keyword preventing the case of all characters to be changed.
Is a keyword forcing the writing of a character, mainly ideograms and latin scripts inside a square, allowing them to be aligned in the usual East Asian scripts (like Chinese or Japanese).
The CSS text-underline-position property specifies the position of the underline which is set using the text-decoration property underline value.
This keyword allows the browser to use an algorithm to choose between under and alphabetic.
This keyword forces the line to be set below the alphabetic baseline, at a position where it won't cross any descender. This is useful to prevent chemical or mathematical formulas, which make a large use of subscripts, to be illegible.
In vertical writing-modes, this keyword forces the line to be placed on the left of the characters. In horizontal writing-modes, it is a synonym of under.
In vertical writing-modes, this keyword forces the line to be placed on the right of the characters. In horizontal writing-modes, it is a synonym of under.
The CSS animation-timing-function property specifies how a CSS animation should progress over the duration of each cycle.
Determines whether touch input may trigger default behavior supplied by the user agent, such as panning or zooming.
The user agent MAY determine any permitted touch behaviors, such as panning and zooming manipulations of the viewport, for touches that begin on the element.
Touches that begin on the element MUST NOT trigger default touch behaviors.
The user agent MAY consider touches that begin on the element only for the purposes of horizontally scrolling the element's nearest ancestor with horizontally scrollable content.
The user agent MAY consider touches that begin on the element only for the purposes of vertically scrolling the element's nearest ancestor with vertically scrollable content.
The transform-style CSS property determines if the children of the element are positioned in the 3D-space or are flattened in the plane of the element.
Indicates that the children of the element should be positioned in the 3D-space.
Indicates that the children of the element are lying in the plane of the element itself.
The unicode-bidi CSS property together with the direction property relates to the handling of bidirectional text in a document.
The element does not offer a additional level of embedding with respect to the bidirectional algorithm. For inline elements implicit reordering works across element boundaries.
If the element is inline, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the direction property.
For inline elements this creates an override. For block container elements this creates an override for inline-level descendants not within another block container element. This means that inside the element, reordering is strictly in sequence according to the direction property; the implicit part of the bidirectional algorithm is ignored.
This keyword indicates that the element's container directionality should be calculated without considering the content of this element. The element is therefore isolated from its siblings. When applying its bidirectional-resolution algorithm, its container element treats it as one or several U+FFFC Object Replacement Character, i.e. like an image.
This keyword applies the isolation behavior of the isolate keyword to the surrounding content and the override behavior of the bidi-override keyword to the inner content.
This keyword makes the elements directionality calculated without considering its parent bidirectional state or the value of the direction property. The directionality is calculated using the P2 and P3 rules of the Unicode Bidirectional Algorithm.
This value allows to display data which has already formatted using a tool following the Unicode Bidirectional Algorithm.
The vertical-align CSS property specifies the vertical alignment of an inline or table-cell box.
Aligns the baseline of the element with the baseline of its parent. The baseline of some replaced elements, like textarea is not specified by the HTML specification, meaning that their behavior with this keyword may change from one browser to the other.
Aligns the baseline of the element with the subscript-baseline of its parent.
Aligns the baseline of the element with the superscript-baseline of its parent.
Aligns the top of the element with the top of the parent element's font.
Aligns the bottom of the element with the bottom of the parent element's font.
Aligns the middle of the element with the middle of lowercase letters in the parent.
Align the top of the element and its descendants with the top of the entire line.
Align the bottom of the element and its descendants with the bottom of the entire line.
Default value, the box is visible.
The box is invisible (fully transparent, nothing is drawn), but still affects layout. Descendants of the element will be visible if they have visibility:visible (this doesn't work in IE up to version 7).
For table rows, columns, column groups, and row groups the row(s) or column(s) are hidden and the space they would have occupied is removed (as if display: none were applied to the column/row of the table). However, the size of other rows and columns is still calculated as though the cells in the collapsed row(s) or column(s) are present. This was designed for fast removal of a row/column from a table without having to recalculate widths and heights for every portion of the table. For XUL elements, the computed size of the element is always zero, regardless of other styles that would normally affect the size, although margins still take effect. For other elements, collapse is treated the same as hidden.
The white-space CSS property is used to to describe how whitespace inside the element is handled.
Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes.
Collapses whitespace as for normal, but suppresses line breaks (text wrapping) within text.
Sequences of whitespace are preserved, lines are only broken at newline characters in the source and at br elements.
Sequences of whitespace are preserved. Lines are broken at newline characters, at br, and as necessary to fill line boxes.
Sequences of whitespace are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
The word-break CSS property is used to specify how (or if) to break lines within words.
Use the default line break rule.
Word breaks may be inserted between any character for non-CJK (Chinese/Japanese/Korean) text.
Don't allow word breaks for CJK text. Non-CJK text behavior is same as normal.
The word-wrap CSS property is used to specify whether or not the browser may break lines within words in order to prevent overflow (in other words, force wrapping) when an otherwise unbreakable string is too long to fit in its containing box.
Indicates that lines may only break at normal word break points.
Indicates that normally unbreakable words may be broken at arbitrary points if there are no otherwise acceptable break points in the line.
CSS Writing Modes Level 3 defines CSS features to support various international script modes, such as left-to-right (e.g., Latin and Indic), right-to-left (e.g., Hebrew and Arabic), bidirectional (e.g., mixed Latin and Arabic) and vertical (e.g., Asian). This article is about the CSS writing-mode property.
Indicates that lines may only break at normal word break points.
Content flows horizontally from right to left, vertically from top to bottom. The next horizontal line is positioned below the previous line.
Content flows vertically from top to bottom, horizontally from left to right. The next vertical line is positioned to the right of the previous line. For SVG1 documents only, use the deprecated value tb-lr.
Content flows vertically from top to bottom, horizontally from right to left. The next vertical line is positioned to the left of the previous line. For SVG1 documents only, use the deprecated value tb or tb-rl.
Content flows vertically from bottom to top, horizontally right to left. The next vertical line is positioned to the left of the previous line.
Content flows vertically from bottom to top, horizontally left to right. The next vertical line is positioned to the right of the previous line.
Content flows horizontally from left to right, vertically from bottom to top. The next horizontal line is positioned above the previous line.
Content flows horizontally from right to left, vertically from bottom to top. The next horizontal line is positioned above the previous line.
Each web page loaded in the browser has its own document object. The Document interface serves as an entry point to the web page's content (the DOM tree, including elements such as body and table) and provides functionality global to the document (such as obtaining the page's URL and creating new elements in the document).
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
Dispatches the specified event to the current element.
To create an event object use the createEvent method in Firefox, Opera, Google Chrome, Safari and Internet Explorer from version 9. After the new event is created, initialize it first (for details, see the page for the createEvent method). When the event is initialized, it is ready for dispatching.
Required. Reference to an event object to be dispatched.
Boolean that indicates whether the default action of the event was not canceled.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Returns a DOMString representing the base URL. The concept of base URL changes from one language to another; in HTML, it corresponds to the protocol, the domain name and the directory structure, that is all until the last '/'.
Returns a live NodeList containing all the children of this node. NodeList being live means that if the children of the Node change, the NodeList object is automatically updated.
Returns a Node representing the first direct child node of the node, or null if the node has no child.
Returns a Node representing the last direct child node of the node, or null if the node has no child.
Returns a Node representing the next node in the tree, or null if there isn't such node.
Returns a DOMString containing the name of the Node. The structure of the name will differ with the name type. E.g. An HTMLElement will contain the name of the corresponding tag, like 'audio' for an HTMLAudioElement, a Text node will have the '#text' string, or a Document node will have the '#document' string.
Returns an unsigned short representing the type of the node.
Is a DOMString representing the value of an object. For most Node type, this returns null and any set operation is ignored. For nodes of type TEXT_NODE (Text objects), COMMENT_NODE (Comment objects), and PROCESSING_INSTRUCTION_NODE (ProcessingInstruction objects), the value corresponds to the text data contained in the object.
Returns the Document that this node belongs to. If no document is associated with it, returns null.
Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.
Returns an Element that is the parent of this node. If the node has no parent, or if that parent is not an Element, this property returns null.
Returns a Node representing the previous node in the tree, or null if there isn't such node.
Is a DOMString representing the textual content of an element and all its descendants.
Adds a node to the end of the list of children of a specified parent node. If the node already exists it is removed from current parent node, then added to new parent node.
child is the node to append underneath element. Also returned.
Returns a duplicate of the node on which this method was called.
The new node that will be a clone of this node
Returns a duplicate of the node on which this method was called.
true if the children of the node should also be cloned, or false to clone only the specified node.
The new node that will be a clone of this node
Compares the position of the current node against another node in any other document.
is the node that's being compared against.
The return value is computed as the relationship that otherNode has with node.
Indicates whether a node is a descendant of a given node.
is the node that's being compared against.
The return value is true if otherNode is a descendant of node, or node itself. Otherwise the return value is false.
returns a Boolean value indicating whether the current Node has child nodes or not.
Boolean value indicating whether the current Node has child nodes or not
Inserts the specified node before a reference element as a child of the current node.
The node to insert.
The node before which newElement is inserted.
The node being inserted, that is newElement
Accepts a namespace URI as an argument and returns true if the namespace is the default namespace on the given node or false if not.
string representing the namespace against which the element will be checked.
holds the return value true or false.
Tests whether two nodes are equal.
The node to compare equality with.
Clean up all the text nodes under this element (merge adjacent, remove empty).
Removes a child node from the DOM. Returns removed node.
child node to be removed from the DOM.
Reference to the removed child node
Replaces one child node of the specified element with another.
new node to replace oldChild. If it already exists in the DOM, it is first removed.
the existing child to be replaced.
the replaced node. This is the same node as oldChild.
The number of child nodes that are elements.
All child elements of an element as a collection.
The ParentNode.firstElementChild read-only property returns the object's first child Element, or null if there are no child elements.
The ParentNode.lastElementChild read-only method returns the object's last child Element or null if there are no child elements.
The oncopy property returns the onCopy event handler code on the current element.
Returns the event handling code for the cut event.
Returns the event handling code for the paste event.
Returns the event handling code for the wheel event.
EventHandler representing the code to be called when the abort event is raised.
EventHandler representing the code to be called when the blur event is raised.
OnErrorEventHandler representing the code to be called when the error event is raised.
EventHandler representing the code to be called when the focus event is raised.
EventHandler representing the code to be called when the cancel event is raised.
EventHandler representing the code to be called when the canplay event is raised
EventHandler representing the code to be called when the canplaythrough event is raised.
EventHandler representing the code to be called when the change event is raised.
EventHandler representing the code to be called when the click event is raised.
EventHandler representing the code to be called when the close event is raised.
EventHandler representing the code to be called when the contextmenu event is raised.
EventHandler representing the code to be called when the cuechange event is raised.
EventHandler representing the code to be called when the dblclick event is raised.
EventHandler representing the code to be called when the drag event is raised.
Is an EventHandler representing the code to be called when the dragend event is raised
Is an EventHandler representing the code to be called when the dragenter event is raised
Is an EventHandler representing the code to be called when the dragexit event is raised
Is an EventHandler representing the code to be called when the dragleave event is raised
Is an EventHandler representing the code to be called when the dragover event is raised
Is an EventHandler representing the code to be called when the dragstart event is raised
Is an EventHandler representing the code to be called when the drop event is raised
Is an EventHandler representing the code to be called when the durationchange event is raised
Is an EventHandler representing the code to be called when the emptied event is raised
Is an EventHandler representing the code to be called when the ended event is raised
Is an EventHandler representing the code to be called when the input event is raised
Is an EventHandler representing the code to be called when the invalid event is raised
Is an EventHandler representing the code to be called when the keydown event is raised
Is an EventHandler representing the code to be called when the keypress event is raised
Is an EventHandler representing the code to be called when the keyup event is raised
Is an EventHandler representing the code to be called when the load event is raised
Is an EventHandler representing the code to be called when the loadeddata event is raised
Is an EventHandler representing the code to be called when the loadedmetadata event is raised
Is an EventHandler representing the code to be called when the loadstart event is raised
Is an EventHandler representing the code to be called when the mousedown event is raised
Is an EventHandler representing the code to be called when the mouseenter event is raised
Is an EventHandler representing the code to be called when the mouseleave event is raised
Is an EventHandler representing the code to be called when the mousemove event is raised
Is an EventHandler representing the code to be called when the mouseout event is raised
Is an EventHandler representing the code to be called when the mouseover event is raised
Is an EventHandler representing the code to be called when the mouseup event is raised
Is an EventHandler representing the code to be called when the mousewheel event is raised
Is an EventHandler representing the code to be called when the pause event is raised
Is an EventHandler representing the code to be called when the play event is raised
Is an EventHandler representing the code to be called when the playing event is raised
Is an EventHandler representing the code to be called when the progress event is raised
Is an EventHandler representing the code to be called when the ratechange event is raised
Is an EventHandler representing the code to be called when the reset event is raised
Is an EventHandler representing the code to be called when the scroll event is raised
Is an EventHandler representing the code to be called when the seeked event is raised
Is an EventHandler representing the code to be called when the seeking event is raised
Is an EventHandler representing the code to be called when the select event is raised
Is an EventHandler representing the code to be called when the show event is raised
Is an EventHandler representing the code to be called when the sort event is raised
Is an EventHandler representing the code to be called when the stalled event is raised
Is an EventHandler representing the code to be called when the submit event is raised
Is an EventHandler representing the code to be called when the suspend event is raised
Is an EventHandler representing the code to be called when the timeupdate event is raised
Is an EventHandler representing the code to be called when the volumechange event is raised
Is an EventHandler representing the code to be called when the waiting event is raised
document.async can be set to indicate whether a document.load call should be an asynchronous or synchronous request. true is the default value, indicating that documents should be loaded asynchronously.
Returns the character encoding of the current document.
Indicates whether the document is rendered in Quirks mode or Strict mode.
Returns the MIME type that the document is being rendered as. This may come from HTTP headers or other sources of MIME information, and might be affected by automatic type conversions performed by either the browser or extensions.
Returns the Document Type Declaration (DTD) associated with current document.
Returns the Element that is the root element of the document (for example, the <html> element for HTML documents).
Returns the document location as string.
Returns a DOMImplementation object associated with the current document.
Returns the last enabled style sheet set; this property's value changes whenever the document.selectedStyleSheetSet property is changed.
Returns the preferred style sheet set as set by the page author.
Indicates the name of the style sheet set that's currently in use.
The Document.styleSheets read-only property returns a StyleSheetList of StyleSheet objects for stylesheets explicitly linked into or embedded in a document.
Returns a live list of all of the currently-available style sheet sets.
Returns the currently focused element, that is, the element that will get keystroke events if the user types any.
Returns or sets the color of an active link in the document body. A link is active during the time between mousedown and mouseup events.
Returns a list of all of the anchors in the document.
Returns an ordered list of the applets within a document.
Gets/sets the background color of the current document.
Returns the body or frameset node of the current document, or null if no such element exists.
Get and set the cookies associated with the current document.
In browsers returns the window object associated with the document or null if none available.
Gets/sets the ability to edit the whole document.
Gets/sets directionality (rtl/ltr) of the document.
Gets/sets the domain portion of the origin of the current document, as used by the same origin policy.
Returns a list of the embedded OBJECTS within the current document.
Gets/sets the foreground color, or text color, of the current document.
Returns a list of the form elements within the current document.
Returns the head element of the current document. If there are more than one head elements, the first one is returned.
Returns a list of the images in the current document.
Returns a string containing the date and time on which the current document was last modified.
Gets/sets the color of hyperlinks in the document.
Returns a list of all the hyperlinks in the document.
The Document.location read-only property returns a Location object, which contains information about the URL of the document and provides methods for changing that URL and load another URL.
Returns an HTMLCollection object containing one or more HTMLEmbedElements or null which represent the embed elements in the current document.
Returns loading status of the document.
Returns the URI of the page that linked to this page.
Returns all the script elements on the document.
Returns the title of the current document.
Returns a string containing the URL of the current document.
Gets/sets the color of hyperlinks in the document.
Returns the event handling code for the readystatechange event.
Adopts a node from an external document. The node and its subtree is removed from the document it's in (if any), and its ownerDocument is changed to the current document. The node can then be inserted into the current document.
the node from another document to be adopted.
the adopted node that can be used in the current document. The new node's parentNode is null, since it has not yet been inserted into the document tree.
This method is used to retrieve the caret position in a document based on two coordinates. A CaretPosition is returned, containing the found DOM node and the character offset in that node.
Horizontal point on the page at where to determine the caret position.
Vertical point on the page at where to determine the caret position.
A CaretPosition. Null, if x or y are negative or greater than the viewport.
This method is used to retrieve the caret position in a document based on two coordinates. A Range is returned, containing the found DOM node and the character offset in that node.
Horizontal point on the page at where to determine the caret position.
Vertical point on the page at where to determine the caret position.
A Range. Null, if x or y are negative or greater than the viewport.
Creates a new Attr object and returns it.
name is a string containing the name of the attribute.
an attribute node
Creates a new attribute node in a given namespace and returns it.
name is a string containing the name of the attribute.
an attribute node
Creates a new CDATA node and returns it.
string containing the data to be added to the CDATA Section.
CDATA Section node.
Creates a new comment node and returns it.
string containing the data to be added to the Comment.
Comment node.
Creates a new document fragment.
In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known.
In a XUL document creates the specified XUL element.
In other documents creates an element with a null namespaceURI.
tagName is a string that specifies the type of element to be created. The nodeName of the created element is initialized with the value of tagName. Don't use qualified names (like "html:a") with this method.
created element object
In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known.
In a XUL document creates the specified XUL element.
In other documents creates an element with a null namespaceURI.
tagName is a string that specifies the type of element to be created. The nodeName of the created element is initialized with the value of tagName. Don't use qualified names (like "html:a") with this method.
created element object
Creates an element with the specified namespace URI and qualified name.
a string that specifies the namespace URI to associate with the element. The namespaceURI property of the created element is initialized with the value of namespaceURI. (see section below for "Valid Namespace URI's")
a string that specifies the type of element to be created. The nodeName property of the created element is initialized with the value of qualifiedName
the created element.
Creates an element with the specified namespace URI and qualified name.
a string that specifies the namespace URI to associate with the element. The namespaceURI property of the created element is initialized with the value of namespaceURI. (see section below for "Valid Namespace URI's")
a string that specifies the type of element to be created. The nodeName property of the created element is initialized with the value of qualifiedName
the created element.
Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent.
type is a string that represents the type of event to be created. Possible event types include "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents".
the created Event object.
Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent.
type is a string that represents the type of event to be created. Possible event types include "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents".
the created Event object.
Returns a new NodeIterator object.
The root node at which to begin the NodeIterator's traversal.
Returns a new NodeIterator object.
The root node at which to begin the NodeIterator's traversal.
Bitwise OR'd list of Filter specification constants from the NodeFilter DOM interface, indicating which nodes to iterate over.
Returns a new NodeIterator object.
The root node at which to begin the NodeIterator's traversal.
Bitwise OR'd list of Filter specification constants from the NodeFilter DOM interface, indicating which nodes to iterate over.
An object implementing the NodeFilter interface; its acceptNode() method will be called for each node in the subtree based at root which is accepted as included by the whatToShow flag to determine whether or not to include it in the list of iterable nodes (a simple callback function may also be used instead). The method should return one of NodeFilter.FILTER_ACCEPT, NodeFilter.FILTER_REJECT, or NodeFilter.FILTER_SKIP.
Creates a new ProcessingInstruction object.
refers to the target part of the processing instruction node
string containing the data to be added to the data within the node.
Returns a new Range object.
Creates a new Text node.
string containing the data to be put in the text node.
The Document.createTreeWalker() creator method returns a newly created TreeWalker object.
Is the root Node of this TreeWalker traversal. Typically this will be an element owned by the document.
The Document.createTreeWalker() creator method returns a newly created TreeWalker object.
Is the root Node of this TreeWalker traversal. Typically this will be an element owned by the document.
Is an optionale unsigned int representing a bitmask created by combining the constant properties of NodeFilter. It is a convenient way of filtering for certain types of node. It defaults to 0xFFFFFFFF representing the SHOW_ALL constant.
The Document.createTreeWalker() creator method returns a newly created TreeWalker object.
Is the root Node of this TreeWalker traversal. Typically this will be an element owned by the document.
Is an optionale unsigned int representing a bitmask created by combining the constant properties of NodeFilter. It is a convenient way of filtering for certain types of node. It defaults to 0xFFFFFFFF representing the SHOW_ALL constant.
Is an optional NodeFilter, that is an object with a method acceptNode, which is called by the TreeWalker to determine whether or not to accept a node that has passed the whatToShow check.
Returns the element from the document whose elementFromPoint method is being called which is the topmost element which lies under the given point. To get an element, specify the point via coordinates, in CSS pixels, relative to the upper-left-most point in the window or frame containing the document.
x and y specify the coordinates to check, in CSS pixels relative to the upper-left corner of the document's containing window or frame.
x and y specify the coordinates to check, in CSS pixels relative to the upper-left corner of the document's containing window or frame.
Enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
The name of the style sheets to enable. All style sheets with a title that match this name will be enabled, while all others that have a title will be disabled. Specify an empty string for the name parameter to disable all alternate and preferred style sheets (but not the persistent style sheets; that is, those with no title attribute).
The exitPointerLock asynchronously releases a pointer lock previously requested through Element.requestPointerLock.
To track the success or failure of the request, it is necessary to listen for the pointerlockchange and pointerlockerror events.
Returns an array-like object of all child elements which have all of the given class names. When called on the document object, the complete document is searched, including the root node. You may also call getElementsByClassName() on any element; it will return only elements which are descendants of the specified root element with the given class names.
string representing the list of class names to match; class names are separated by whitespace
HTMLCollection of found elements.
Returns an HTMLCollection of elements with the given tag name. The complete document is searched, including the root node. The returned HTMLCollection is live, meaning that it updates itself automatically to stay in sync with the DOM tree without having to call document.getElementsByTagName() again.
a string representing the name of the elements. The special string "*" represents all elements.
a live HTMLCollection of found elements in the order they appear in the tree.
Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.
the namespace URI of elements to look for.
the local name of elements to look for or the special value "*", which matches all elements
live NodeList of found elements in the order they appear in the tree.
Creates a copy of a node from an external document that can be inserted into the current document.
The node from another document to be imported.
The new node that is imported into the document. The new node's parentNode is null, since it has not yet been inserted into the document tree.
Creates a copy of a node from an external document that can be inserted into the current document.
The node from another document to be imported.
A boolean, indicating whether the descendants of the imported node need to be imported.
The new node that is imported into the document. The new node's parentNode is null, since it has not yet been inserted into the document tree.
Releases mouse capture if it's currently enabled on an element within this document. Enabling mouse capture on an element is done by calling element.setCapture().
Returns a reference to the element by its ID.
id is a case-sensitive string representing the unique ID of the element being sought.
element is a reference to an Element object, or null if an element with the specified ID is not in the document.
Returns a reference to the element by its ID.
id is a case-sensitive string representing the unique ID of the element being sought.
element is a reference to an Element object, or null if an element with the specified ID is not in the document.
Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
selectors is a string containing one or more CSS selectors separated by commas.
Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
selectors is a string containing one or more CSS selectors separated by commas.
Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors. The object returned is a NodeList.
selectors is a string containing one or more CSS selectors separated by commas.
Closes a document stream for writing.
When an HTML document has been switched to designMode, the document object exposes the execCommand method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand will affect the currently active editable element.
the name of the command
When an HTML document has been switched to designMode, the document object exposes the execCommand method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand will affect the currently active editable element.
the name of the command
whether the default user interface should be shown. This is not implemented in Mozilla.
When an HTML document has been switched to designMode, the document object exposes the execCommand method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand will affect the currently active editable element.
the name of the command
whether the default user interface should be shown. This is not implemented in Mozilla.
some commands (such as insertimage) require an extra value argument (the image's url). Pass an argument of null if no argument is needed.
Returns a list of elements with a given name in the (X)HTML document.
name is the value of the name attribute of the element.
elements is an HTMLCollection of elements.
The DOM getSelection() method is available on the Window and Document interfaces.
Returns a Boolean value indicating whether the document or any element inside the document has focus. This method can be used to determine whether the active element in a document has focus.
false if the active element in the document has no focus; true if the active element in the document has focus.
Opens a document stream for writing.
Returns true if the formating command can be executed on the current range.
Returns true if the formating command is in an indeterminate state on the current range.
Returns true if the formating command has been executed on the current range.
Returns true if the formating command is supported on the current range.
The command for which to determine support.
Returns the current value of the current range for a formating command.
Writes a string of text to a document stream opened by document.open().
markup is a string containing the text to be written to the document.
Writes a string of text followed by a newline character to a document.
line is string containing a line of text.
Returns a live HTMLCollection containing all objects of type Node that are children of the DocumentFragment object.
Returns the Element that is the first child of the DocumentFragment object, or null if there is none.
Returns the Element that is the last child of the DocumentFragment object, or null if there is none.
Returns an unsigned long giving the amount of children that the DocumentFragment has.
Returns the first Element node within the DocumentFragment, in document order, that matches the specified selectors.
String containing one or more CSS selectors separated by commas.
Returns the first Element node within the DocumentFragment, in document order, that matches the specified selectors.
selectors is a string containing one or more CSS selectors separated by commas.
Returns a NodeList of all the Element nodes within the DocumentFragment that match the specified selectors.
String containing one or more CSS selectors separated by commas.
Returns the first Element node within the DocumentFragment, in document order, that matches the specified ID.
Returns the first Element node within the DocumentFragment, in document order, that matches the specified ID.
id is a case-sensitive string representing the unique ID of the element being sought.
element is a reference to an Element object, or null if an element with the specified ID is not in the document.
Each web page loaded in the browser has its own document object. The Document interface serves as an entry point to the web page's content (the DOM tree, including elements such as body and table) and provides functionality global to the document (such as obtaining the page's URL and creating new elements in the document).
The number of child nodes that are elements.
All child elements of an element as a collection.
The ParentNode.firstElementChild read-only property returns the object's first child Element, or null if there are no child elements.
The ParentNode.lastElementChild read-only method returns the object's last child Element or null if there are no child elements.
The oncopy property returns the onCopy event handler code on the current element.
Returns the event handling code for the cut event.
Returns the event handling code for the paste event.
Returns the event handling code for the wheel event.
EventHandler representing the code to be called when the abort event is raised.
EventHandler representing the code to be called when the blur event is raised.
OnErrorEventHandler representing the code to be called when the error event is raised.
EventHandler representing the code to be called when the focus event is raised.
EventHandler representing the code to be called when the cancel event is raised.
EventHandler representing the code to be called when the canplay event is raised
EventHandler representing the code to be called when the canplaythrough event is raised.
EventHandler representing the code to be called when the change event is raised.
EventHandler representing the code to be called when the click event is raised.
EventHandler representing the code to be called when the close event is raised.
EventHandler representing the code to be called when the contextmenu event is raised.
EventHandler representing the code to be called when the cuechange event is raised.
EventHandler representing the code to be called when the dblclick event is raised.
EventHandler representing the code to be called when the drag event is raised.
Is an EventHandler representing the code to be called when the dragend event is raised
Is an EventHandler representing the code to be called when the dragenter event is raised
Is an EventHandler representing the code to be called when the dragexit event is raised
Is an EventHandler representing the code to be called when the dragleave event is raised
Is an EventHandler representing the code to be called when the dragover event is raised
Is an EventHandler representing the code to be called when the dragstart event is raised
Is an EventHandler representing the code to be called when the drop event is raised
Is an EventHandler representing the code to be called when the durationchange event is raised
Is an EventHandler representing the code to be called when the emptied event is raised
Is an EventHandler representing the code to be called when the ended event is raised
Is an EventHandler representing the code to be called when the input event is raised
Is an EventHandler representing the code to be called when the invalid event is raised
Is an EventHandler representing the code to be called when the keydown event is raised
Is an EventHandler representing the code to be called when the keypress event is raised
Is an EventHandler representing the code to be called when the keyup event is raised
Is an EventHandler representing the code to be called when the load event is raised
Is an EventHandler representing the code to be called when the loadeddata event is raised
Is an EventHandler representing the code to be called when the loadedmetadata event is raised
Is an EventHandler representing the code to be called when the loadstart event is raised
Is an EventHandler representing the code to be called when the mousedown event is raised
Is an EventHandler representing the code to be called when the mouseenter event is raised
Is an EventHandler representing the code to be called when the mouseleave event is raised
Is an EventHandler representing the code to be called when the mousemove event is raised
Is an EventHandler representing the code to be called when the mouseout event is raised
Is an EventHandler representing the code to be called when the mouseover event is raised
Is an EventHandler representing the code to be called when the mouseup event is raised
Is an EventHandler representing the code to be called when the mousewheel event is raised
Is an EventHandler representing the code to be called when the pause event is raised
Is an EventHandler representing the code to be called when the play event is raised
Is an EventHandler representing the code to be called when the playing event is raised
Is an EventHandler representing the code to be called when the progress event is raised
Is an EventHandler representing the code to be called when the ratechange event is raised
Is an EventHandler representing the code to be called when the reset event is raised
Is an EventHandler representing the code to be called when the scroll event is raised
Is an EventHandler representing the code to be called when the seeked event is raised
Is an EventHandler representing the code to be called when the seeking event is raised
Is an EventHandler representing the code to be called when the select event is raised
Is an EventHandler representing the code to be called when the show event is raised
Is an EventHandler representing the code to be called when the sort event is raised
Is an EventHandler representing the code to be called when the stalled event is raised
Is an EventHandler representing the code to be called when the submit event is raised
Is an EventHandler representing the code to be called when the suspend event is raised
Is an EventHandler representing the code to be called when the timeupdate event is raised
Is an EventHandler representing the code to be called when the volumechange event is raised
Is an EventHandler representing the code to be called when the waiting event is raised
document.async can be set to indicate whether a document.load call should be an asynchronous or synchronous request. true is the default value, indicating that documents should be loaded asynchronously.
Returns the character encoding of the current document.
Indicates whether the document is rendered in Quirks mode or Strict mode.
Returns the MIME type that the document is being rendered as. This may come from HTTP headers or other sources of MIME information, and might be affected by automatic type conversions performed by either the browser or extensions.
Returns the Document Type Declaration (DTD) associated with current document.
Returns the Element that is the root element of the document (for example, the <html> element for HTML documents).
Returns the document location as string.
Returns a DOMImplementation object associated with the current document.
Returns the last enabled style sheet set; this property's value changes whenever the document.selectedStyleSheetSet property is changed.
Returns the preferred style sheet set as set by the page author.
Indicates the name of the style sheet set that's currently in use.
The Document.styleSheets read-only property returns a StyleSheetList of StyleSheet objects for stylesheets explicitly linked into or embedded in a document.
Returns a live list of all of the currently-available style sheet sets.
Returns the currently focused element, that is, the element that will get keystroke events if the user types any.
Returns or sets the color of an active link in the document body. A link is active during the time between mousedown and mouseup events.
Returns a list of all of the anchors in the document.
Returns an ordered list of the applets within a document.
Gets/sets the background color of the current document.
Returns the body or frameset node of the current document, or null if no such element exists.
Get and set the cookies associated with the current document.
In browsers returns the window object associated with the document or null if none available.
Gets/sets the ability to edit the whole document.
Gets/sets directionality (rtl/ltr) of the document.
Gets/sets the domain portion of the origin of the current document, as used by the same origin policy.
Returns a list of the embedded OBJECTS within the current document.
Gets/sets the foreground color, or text color, of the current document.
Returns a list of the form elements within the current document.
Returns the head element of the current document. If there are more than one head elements, the first one is returned.
Returns a list of the images in the current document.
Returns a string containing the date and time on which the current document was last modified.
Gets/sets the color of hyperlinks in the document.
Returns a list of all the hyperlinks in the document.
The Document.location read-only property returns a Location object, which contains information about the URL of the document and provides methods for changing that URL and load another URL.
Returns an HTMLCollection object containing one or more HTMLEmbedElements or null which represent the embed elements in the current document.
Returns loading status of the document.
Returns the URI of the page that linked to this page.
Returns all the script elements on the document.
Returns the title of the current document.
Returns a string containing the URL of the current document.
Gets/sets the color of hyperlinks in the document.
Returns the event handling code for the readystatechange event.
Adopts a node from an external document. The node and its subtree is removed from the document it's in (if any), and its ownerDocument is changed to the current document. The node can then be inserted into the current document.
the node from another document to be adopted.
the adopted node that can be used in the current document. The new node's parentNode is null, since it has not yet been inserted into the document tree.
This method is used to retrieve the caret position in a document based on two coordinates. A CaretPosition is returned, containing the found DOM node and the character offset in that node.
Horizontal point on the page at where to determine the caret position.
Vertical point on the page at where to determine the caret position.
A CaretPosition. Null, if x or y are negative or greater than the viewport.
This method is used to retrieve the caret position in a document based on two coordinates. A Range is returned, containing the found DOM node and the character offset in that node.
Horizontal point on the page at where to determine the caret position.
Vertical point on the page at where to determine the caret position.
A Range. Null, if x or y are negative or greater than the viewport.
Creates a new Attr object and returns it.
name is a string containing the name of the attribute.
an attribute node
Creates a new attribute node in a given namespace and returns it.
name is a string containing the name of the attribute.
an attribute node
Creates a new CDATA node and returns it.
string containing the data to be added to the CDATA Section.
CDATA Section node.
Creates a new comment node and returns it.
string containing the data to be added to the Comment.
Comment node.
Creates a new document fragment.
In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known.
In a XUL document creates the specified XUL element.
In other documents creates an element with a null namespaceURI.
tagName is a string that specifies the type of element to be created. The nodeName of the created element is initialized with the value of tagName. Don't use qualified names (like "html:a") with this method.
created element object
In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known.
In a XUL document creates the specified XUL element.
In other documents creates an element with a null namespaceURI.
tagName is a string that specifies the type of element to be created. The nodeName of the created element is initialized with the value of tagName. Don't use qualified names (like "html:a") with this method.
created element object
Creates an element with the specified namespace URI and qualified name.
a string that specifies the namespace URI to associate with the element. The namespaceURI property of the created element is initialized with the value of namespaceURI. (see section below for "Valid Namespace URI's")
a string that specifies the type of element to be created. The nodeName property of the created element is initialized with the value of qualifiedName
the created element.
Creates an element with the specified namespace URI and qualified name.
a string that specifies the namespace URI to associate with the element. The namespaceURI property of the created element is initialized with the value of namespaceURI. (see section below for "Valid Namespace URI's")
a string that specifies the type of element to be created. The nodeName property of the created element is initialized with the value of qualifiedName
the created element.
Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent.
type is a string that represents the type of event to be created. Possible event types include "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents".
the created Event object.
Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent.
type is a string that represents the type of event to be created. Possible event types include "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents".
the created Event object.
Returns a new NodeIterator object.
The root node at which to begin the NodeIterator's traversal.
Returns a new NodeIterator object.
The root node at which to begin the NodeIterator's traversal.
Bitwise OR'd list of Filter specification constants from the NodeFilter DOM interface, indicating which nodes to iterate over.
Returns a new NodeIterator object.
The root node at which to begin the NodeIterator's traversal.
Bitwise OR'd list of Filter specification constants from the NodeFilter DOM interface, indicating which nodes to iterate over.
An object implementing the NodeFilter interface; its acceptNode() method will be called for each node in the subtree based at root which is accepted as included by the whatToShow flag to determine whether or not to include it in the list of iterable nodes (a simple callback function may also be used instead). The method should return one of NodeFilter.FILTER_ACCEPT, NodeFilter.FILTER_REJECT, or NodeFilter.FILTER_SKIP.
Creates a new ProcessingInstruction object.
refers to the target part of the processing instruction node
string containing the data to be added to the data within the node.
Returns a new Range object.
Creates a new Text node.
string containing the data to be put in the text node.
The Document.createTreeWalker() creator method returns a newly created TreeWalker object.
Is the root Node of this TreeWalker traversal. Typically this will be an element owned by the document.
The Document.createTreeWalker() creator method returns a newly created TreeWalker object.
Is the root Node of this TreeWalker traversal. Typically this will be an element owned by the document.
Is an optionale unsigned long representing a bitmask created by combining the constant properties of NodeFilter. It is a convenient way of filtering for certain types of node. It defaults to 0xFFFFFFFF representing the SHOW_ALL constant.
The Document.createTreeWalker() creator method returns a newly created TreeWalker object.
Is the root Node of this TreeWalker traversal. Typically this will be an element owned by the document.
Is an optionale unsigned long representing a bitmask created by combining the constant properties of NodeFilter. It is a convenient way of filtering for certain types of node. It defaults to 0xFFFFFFFF representing the SHOW_ALL constant.
Is an optional NodeFilter, that is an object with a method acceptNode, which is called by the TreeWalker to determine whether or not to accept a node that has passed the whatToShow check.
Returns the element from the document whose elementFromPoint method is being called which is the topmost element which lies under the given point. To get an element, specify the point via coordinates, in CSS pixels, relative to the upper-left-most point in the window or frame containing the document.
x and y specify the coordinates to check, in CSS pixels relative to the upper-left corner of the document's containing window or frame.
x and y specify the coordinates to check, in CSS pixels relative to the upper-left corner of the document's containing window or frame.
Enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
The name of the style sheets to enable. All style sheets with a title that match this name will be enabled, while all others that have a title will be disabled. Specify an empty string for the name parameter to disable all alternate and preferred style sheets (but not the persistent style sheets; that is, those with no title attribute).
The exitPointerLock asynchronously releases a pointer lock previously requested through Element.requestPointerLock.
To track the success or failure of the request, it is necessary to listen for the pointerlockchange and pointerlockerror events.
Returns an array-like object of all child elements which have all of the given class names. When called on the document object, the complete document is searched, including the root node. You may also call getElementsByClassName() on any element; it will return only elements which are descendants of the specified root element with the given class names.
string representing the list of class names to match; class names are separated by whitespace
HTMLCollection of found elements.
Returns an HTMLCollection of elements with the given tag name. The complete document is searched, including the root node. The returned HTMLCollection is live, meaning that it updates itself automatically to stay in sync with the DOM tree without having to call document.getElementsByTagName() again.
a string representing the name of the elements. The special string "*" represents all elements.
a live HTMLCollection of found elements in the order they appear in the tree.
Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.
the namespace URI of elements to look for.
the local name of elements to look for or the special value "*", which matches all elements
live NodeList of found elements in the order they appear in the tree.
Creates a copy of a node from an external document that can be inserted into the current document.
The node from another document to be imported.
The new node that is imported into the document. The new node's parentNode is null, since it has not yet been inserted into the document tree.
Creates a copy of a node from an external document that can be inserted into the current document.
The node from another document to be imported.
A boolean, indicating whether the descendants of the imported node need to be imported.
The new node that is imported into the document. The new node's parentNode is null, since it has not yet been inserted into the document tree.
Releases mouse capture if it's currently enabled on an element within this document. Enabling mouse capture on an element is done by calling element.setCapture().
Returns a reference to the element by its ID.
id is a case-sensitive string representing the unique ID of the element being sought.
element is a reference to an Element object, or null if an element with the specified ID is not in the document.
Returns a reference to the element by its ID.
id is a case-sensitive string representing the unique ID of the element being sought.
element is a reference to an Element object, or null if an element with the specified ID is not in the document.
Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
selectors is a string containing one or more CSS selectors separated by commas.
Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
selectors is a string containing one or more CSS selectors separated by commas.
Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors. The object returned is a NodeList.
selectors is a string containing one or more CSS selectors separated by commas.
Closes a document stream for writing.
When an HTML document has been switched to designMode, the document object exposes the execCommand method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand will affect the currently active editable element.
the name of the command
When an HTML document has been switched to designMode, the document object exposes the execCommand method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand will affect the currently active editable element.
the name of the command
whether the default user interface should be shown. This is not implemented in Mozilla.
When an HTML document has been switched to designMode, the document object exposes the execCommand method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand will affect the currently active editable element.
the name of the command
whether the default user interface should be shown. This is not implemented in Mozilla.
some commands (such as insertimage) require an extra value argument (the image's url). Pass an argument of null if no argument is needed.
Returns a list of elements with a given name in the (X)HTML document.
name is the value of the name attribute of the element.
elements is an HTMLCollection of elements.
The DOM getSelection() method is available on the Window and Document interfaces.
Returns a Boolean value indicating whether the document or any element inside the document has focus. This method can be used to determine whether the active element in a document has focus.
false if the active element in the document has no focus; true if the active element in the document has focus.
Opens a document stream for writing.
Returns true if the formating command can be executed on the current range.
Returns true if the formating command is in an indeterminate state on the current range.
Returns true if the formating command has been executed on the current range.
Returns true if the formating command is supported on the current range.
The command for which to determine support.
Returns the current value of the current range for a formating command.
Writes a string of text to a document stream opened by document.open().
markup is a string containing the text to be written to the document.
Writes a string of text followed by a newline character to a document.
line is string containing a line of text.
The DocumentType interface represents a Node containing a doctype.
Returns the Element immediately prior to this ChildNode in its parent's children list, or null if there is no Element in the list prior to this ChildNode.
Returns the Element immediately following this ChildNode in its parent's children list, or null if there is no Element in the list following this ChildNode.
Removes the object from its parent children list.
The DOMImplementation interface represent an object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.
The DOMImplementation.createDocument() method creates and returns an XMLDocument.
Is a DOMString containing the namespace URI of the document to be created, or null if the document doesn't belong to one.
Is a DOMString containing the qualified name, that is an optional prefix and colon plus the local root element name, of the document to be created.
The DOMImplementation.createDocument() method creates and returns an XMLDocument.
Is a DOMString containing the namespace URI of the document to be created, or null if the document doesn't belong to one.
Is a DOMString containing the qualified name, that is an optional prefix and colon plus the local root element name, of the document to be created.
Is the DocumentType of the document to be created. It defaults to null.
The DOMImplementation.createDocumentType() method returns a DocumentType object which can either be used with DOMImplementation.createDocument upon document creation or can be put into the document via methods like Node.insertBefore() or Node.replaceChild().
Is a DOMString containing the qualified name, like svg:svg.
Is a DOMString containing the PUBLIC identifier.
Is a DOMString containing the SYSTEM identifiers.
The DOMImplementation.createHTMLDocument() method creates a new HTML Document.
The DOMImplementation.createHTMLDocument() method creates a new HTML Document.
Is a DOMString containing the title to give the new HTML document.
The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.
The different implementation fairly diverged in what kind of features was reported. The latest version of the spec settled to force this method to always return true, except for SVG features, where the functionnality was accurate and in use.
Is a DOMString representing the feature name.
Is a DOMString representing the version of the specification defining the feature.
A type returned by some APIs which contains a list of DOMString (strings).
returns a DOMString (a string)
Returns true/false depending on whether the given string is in the list
returns a DOMString (a string)
Gives length of the list
The class that extends DOMTokenList with settable .Value property
Gets or sets the underlying string.
This type represents a set of space-separated tokens.
Returns an item in the list by its index (or undefined if the number is greater than or equal to the length of the list, prior to Gecko 7.0 returned null)
Returns an item in the list by its index (or undefined if the number is greater than or equal to the length of the list, prior to Gecko 7.0 returned null)
return true if the underlying string contains token, otherwise false
adds token to the underlying string
Remove token from the underlying string
Removes token from string and returns false. If token doesn't exist it's added and the function returns true
Removes token from string and returns false. If token doesn't exist it's added and the function returns true
The HTMLAudioElement interface provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.
The HTML <audio> element is used to embed sound content in documents. It may contain several audio sources, represented using the src attribute or the <source> element; the browser will choose the most suitable one.
Constructor for audio elements. The preload property of the returned object is set to auto and the src property is set to the argument value. The browser begins asynchronously selecting the resource before returning the object.
Constructor for audio elements. The preload property of the returned object is set to auto and the src property is set to the argument value. The browser begins asynchronously selecting the resource before returning the object.
The src property of the constructed HTMLAudioElement.
The HTMLBRElement interface represents a HTML line break element.
Indicates flow of text around floating objects.
The HTMLBodyElement interface provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating body elements.
Color of active hyperlinks.
Color of active hyperlinks.
Background color for the document.
Color of unvisited links.
Reflects the onafterprint HTML attribute value for a function to call after the user has printed the document.
Reflects the onbeforeprint HTML attribute value for a function to call when the user has requested printing the document.
Reflects the onbeforeunload HTML attribute value for a function to call when the document is about to be unloaded.
Exposes the window.onblur event handler to call when the window loses focus. Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
Exposes the window.onerror event handler to call when the document fails to load properly. Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
Exposes the window.onfocus event handler to call when the window gains focus. Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
Reflects the onhashchange HTML attribute value for a function to call when the fragment identifier in the address of the document changes.
Exposes the window.onload event handler to call when the window gains focus. Note: This handler is triggered when the event reaches the window, not the body element. Use addEventListener() to attach an event listener to the body element.
Reflects the onmessage HTML attribute value for a function to call when the document receives a message.
Reflects the onoffline HTML attribute value for a function to call when network communication fails.
Reflects the ononline HTML attribute value for a function to call when network communication is restored.
Reflects the onpopstate HTML attribute value for a function to call when the user has navigated session history.
Reflects the onresize HTML attribute value for a function to call when the document has been resized.
Reflects the onstorage HTML attribute value for a function to call when the storage area has changed.
Reflects the onunload HTML attribute value for a function to call when when the document is going away.
Foreground color of text.
Color of visited links.
The HTMLBaseElement interface contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.
Is a DOMString that reflects the href HTML attribute, containing a base URL for relative URLs in the document.
Is a DOMString that reflects the target HTML attribute, containing a default target browsing context or frame for elements that do not have a target reference specified.
The HTMLAreaElement interface provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of area elements.
Is a DOMString that reflects the alt HTML attribute, containing alternative text for the element.
Is a DOMString that reflects the coords HTML attribute, containing coordinates to define the hot-spot region.
Is a DOMString indicating that the linked resource is intended to be downloaded rather than displayed in the browser. The value represent the proposed name of the file. If the name is not a valid filename of the underlying OS, browser will adapt it.
Is a DOMString containing the fragment identifier (including the leading hash mark (#)), if any, in the referenced URL.
Is a DOMString containing the hostname and port (if it's not the default port) in the referenced URL.
Is a DOMString containing the hostname in the referenced URL.
Is a DOMString containing that reflects the href HTML attribute, containing a valid URL of a linked resource.
Is a DOMString containing that reflects the hreflang HTML attribute, indicating the language of the linked resource.
Is a DOMString containing that reflects the media HTML attribute, indicating target media of the linked resource.
Is a Boolean flag indicating if the area is inactive (true) or active (false).
Is a DOMString containing the password specified before the domain name.
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
Is a DOMString containing the path name component, if any, of the referenced URL.
Is a DOMString containing the port component, if any, of the referenced URL.
Is a DOMString containing the protocol component (including trailing colon ':'), of the referenced URL.
Is a DOMString that reflects the rel HTML attribute, specifying the relationship of the target object to the link object.
Returns a DOMTokenList that reflects the rel HTML attribute, as a list of tokens.
Is a DOMString representing tThe search element, including leading question mark ('?'), if any, of the referenced URL.
The URLUtils.searchParams property is a URLSearchParams containing the query/search parameters of the URL.
Is a DOMString representing the shape of the active area.
Is a DOMString that reflects the target HTML attribute, indicating where to display the linked resource.
Is a DOMString that reflects the type HTML attribute, indicating the MIME type of the linked resource.
Is a DOMString containing the username specified before the domain name.
The HTMLDataListElement interface provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content.
A collection of the contained option elements.
The HTMLEmbedElement interface, which provides special properties (beyond the regular <htmlelement> interface it also has available to it by inheritance) for manipulating <embed> elements.
Reflects the height HTML attribute, containing the displayed height of the resource.
The name of the embedded object.
Reflects the src HTML attribute, containing the address of the resource.
Reflects the type HTML attribute, containing the type of the resource.
Reflects the width HTML attribute, containing the displayed width of the resource.
The HTMLDListElement interface provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list elements.
Indicates that spacing between list items should be reduced.
The HTMLFieldSetElement interface special properties and methods (beyond the regular HTMLelement interface it also has available to it by inheritance) for manipulating the layout and presentation of field-set elements.
Reflects the disabled HTML attribute, indicating whether the user can interact with the control.
The elements belonging to this field set.
The containing form element, if this element is in a form.
If the button is not a descendant of a form element, then the attribute can be the ID of any form element in the same document it is related to, or the null value if none matches.
Reflects the name HTML attribute, containing the name of the field set, used for submitting the form.
Must be the string fieldset.
A localized message that describes the validation constraints that the element does not satisfy (if any). This is the empty string if the element is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
The validity states that this element is in.
Always false because <fieldset> objects are never candidates for constraint validation.
Always returns true because <fieldset> objects are never candidates for constraint validation.
Sets a custom validity message for the field set. If this message is not the empty string, then the field set is suffering from a custom validity error, and does not validate.
The HTMLMediaElement interface has special properties and methods (beyond the properties and methods available for all children of HTMLElement), that are common to all media-related objects.
This interface is inherited by HTMLVideoElement and HTMLAudioElement.
The CurrentTarget type of all MediaElement's events
Reflects the autoplay HTML attribute, indicating whether playback should automatically begin as soon as enough media is available to do so without interruption.
The ranges of the media source that the browser has buffered (if any) at the moment the buffered property is accessed. The returned TimeRanges object is normalized.
Reflects the controls HTML attribute, indicating whether user interface items for controlling the resource should be displayed.
The CORS setting for this image element.
The absolute URL of the chosen media resource (if, for example, the server selects a media file based on the resolution of the user's display), or an empty string if the networkState is EMPTY.
The current playback time, in seconds. Setting this value seeks the media to the new time.
Reflects the muted HTML attribute, indicating whether the media element's audio output should be muted by default. This property has no dynamic effect, to mute and unmute the audio output, use the muted property.
The default playback rate for the media. 1.0 is "normal speed," values lower than 1.0 make the media play slower than normal, higher values make it play faster. The value 0.0 is invalid and throws a NOT_SUPPORTED_ERR exception.
The length of the media in seconds, or zero if no media data is available. If the media data is available but the length is unknown, this value is NaN. If the media is streamed and has no predefined length, the value is Inf.
Indicates whether the media element has ended playback.
The MediaError object for the most recent error, or null if there has not been an error.
Reflects the loop HTML attribute, indicating whether the media element should start over when it reaches the end.
Reflects the mediagroup HTML attribute, indicating the name of the group of elements it belongs to. A group of media elements shares a common controller.
True if the audio is muted, and false otherwise.
The current state of fetching the media over the network.
NETWORK_EMPTY 0 There is no data yet. The readyState is also HAVE_NOTHING.
NETWORK_IDLE 1
NETWORK_LOADING 2 The media is loading.
NETWORK_NO_SOURCE 3
Indicates whether the media element is paused.
The current rate at which the media is being played back. This is used to implement user controls for fast forward, slow motion, and so forth. The normal playback rate is multiplied by this value to obtain the current rate, so a value of 1.0 indicates normal speed.
If the playbackRate is negative, the media is played backwards.
The audio is muted when the media plays backwards or if the fast forward or slow motion is outside a useful range (E.g. Gecko mute the sound outside the range 0.25 and 5.0).
The pitch of the audio is corrected by default and is the same for every speed. Some navigators implement the non-standard preservespitch property to control this.
The ranges of the media source that the browser has played, if any.
Reflects the preload HTML attribute, indicating what data should be preloaded, if any.
It may have one of the following values:
none: hints that either the author thinks that the user won't need to consult that video or that the server wants to minimize its traffic; in others terms this hint indicates that the video should not be cached.
metadata: hints that though the author thinks that the user won't need to consult that video, fetching the metadata (e.g. length) is reasonable.
auto: hints that the user needs have priority; in others terms this hint indicated that, if needed, the whole video could be downloaded, even if the user is not expected to use it.
the empty string: which is a synonym of the auto value.
The readiness state of the media.
HAVE_NOTHING 0 No information is available about the media resource.
HAVE_METADATA 1 Enough of the media resource has been retrieved that the metadata attributes are initialized. Seeking will no longer raise an exception.
HAVE_CURRENT_DATA 2 Data is available for the current playback position, but not enough to actually play more than one frame.
HAVE_FUTURE_DATA 3 Data for the current playback position as well as for at least a little bit of time into the future is available (in other words, at least two frames of video, for example).
HAVE_ENOUGH_DATA 4 Enough data is available—and the download rate is high enough—that the media can be played through to the end without interruption.
The time ranges that the user is able to seek to, if any.
Indicates whether the media is in the process of seeking to a new position.
Reflects the src HTML attribute, containing the URL of a media resource to use.
Represents the list of TextTrack objects contained in the element.
The audio volume, from 0.0 (silent) to 1.0 (loudest).
Determines whether the specified media type can be played back.
Returns:
probably : if the specified type appears to be playable.
maybe : if it's impossible to tell whether the type is playable without playing it.
The empty string : if the specified type definitely cannot be played.
The media type
The string representing that the specified type may be played or not
Directly seek to the given time.
The time to seek
Begins loading the media content from the server.
Pauses the media playback.
Begins playback of the media. If you have changed the src attribute of the media element since the page was loaded, you must call load() before play(), otherwise the original media plays again.
The non-generic MediaElement class. Events' CurrentTarget has the MediaElement type.
The TimeRanges interface is used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements.
A TimeRanges object includes one or more ranges of time, each specified by a starting and ending time offset. You reference each time range by using the start() and end() methods, passing the index number of the time range you want to retrieve.
The term "normalized TimeRanges object" indicates that ranges in such an object are ordered, don't overlap, aren't empty, and don't touch (adjacent ranges are folded into one bigger range).
The number of time ranges represented by the time range object.
Returns the time offset at which a specified time range begins.
A DOMException thrown if the specified index doesn't correspond to an existing range.
The range number to return the starting time for.
Returns the time offset at which a specified time range begins.
Returns the time offset at which a specified time range ends.
A DOMException thrown if the specified index doesn't correspond to an existing range.
The range number to return the ending time for.
Returns the time offset at which a specified time range ends.
The fetching process for the media resource was aborted by the user agent at the user's request.
A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.
An error of some description occurred while decoding the media resource, after the resource was established to be usable.
The media resource indicated by the src attribute was not suitable.
Returns the current error's error code.
The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
It returns the value of the high boundary, reflecting the high <meter> attribute.
It returns the value of the low boundary, reflecting the low <meter> attribute.
It return the maximum value, reflecting the max <meter> attribute.
It returns the minimum value, reflecting the min <meter> attribute.
It retruns the optimum value, reflecting the min <meter> attribute.
A list of <label> elements that are labels for this element.
The HTMLModElement interface provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>.
Reflects the cite HTML attribute, containing a URI of a resource explaining the change.
Reflects the datetime HTML attribute, containing a date-and-time string representing a timestamp for the change.
The types of ModElement
The HTML <ins> Element (or HTML Inserted Text) HTML represents a range of text that has been added to a document.
The HTML <del> element (or HTML Deleted Text Element) represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strike-through text.
The HTMLObjectElement interface provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.
The HTML <object> Element (or HTML Embedded Object Element) represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
The active document of the object element's nested browsing context, if any; otherwise null.
The window proxy of the object element's nested browsing context, if any; otherwise null.
Reflects the data HTML attribute, specifying the address of a resource's data.
The object element's form owner, or null if there isn't one.
Reflects the height HTML attribute, specifying the displayed height of the resource in CSS pixels.
Reflects the name HTML attribute, specifying the name of of a browsing context.
The position of the element in the tabbing navigation order for the current document.
Reflects the type HTML attribute, specifying the MIME type of the resource.
Reflects the typemustmatch HTML attribute, indicating if the resource specified by data must only be played if it matches the type attribute.
Reflects the usemap HTML attribute, specifying a <map> element to use.
A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
The validity states that this element is in.
Reflects the width HTML attribute, specifying the displayed width of the resource in CSS pixels.
Indicates whether the element is a candidate for constraint validation. Always false for HTMLObjectElement objects.
Always returns true, because object objects are never candidates for constraint validation.
Always returns true
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
The custom validity message
The HTMLOListElement interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.
Is a Boolean value reflecting the reversed and defining if the numbering is descending, that is its value is true, or ascending (false).
Is a long value reflecting the start and defining the value of the first number of the first element of the list.
Is a DOMString value reflecting the type and defining the kind of marker to be used to display. It can have the following values:
'1' meaning that decimal numbers are used: 1, 2, 3, 4, 5, …
'a' meaning that the lowercase latin alphabet is used: a, b, c, d, e, …
'A' meaning that the uppercase latin alphabet is used: A, B, C, D, E, …
'i' meaning that the lowercase latin numerals are used: i, ii, iii, iv, v, …
'I' meaning that the uppercase latin numerals are used: I, II, III, IV, V, …
Defines the kind of marker to be used to display with an <ol>. Reflects to the <ol>'s type attribute.
Reflects to '1' value of the <ol>'s type attribute meaning that decimal numbers are used: 1, 2, 3, 4, 5, …
Reflects to 'a' value of the <ol>'s type attribute meaning that the lowercase latin alphabet is used: a, b, c, d, e, …
Reflects to 'A' value of the <ol>'s type attribute meaning that the uppercase latin alphabet is used: A, B, C, D, E, …
Reflects to 'i' value of the <ol>'s type attribute meaning that the lowercase latin numerals are used: i, ii, iii, iv, v, …
Reflects to 'I' value of the <ol>'s type attribute meaning that the uppercase latin numerals are used: I, II, III, IV, V, …
The HTMLOptGroupElement interface provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.
If true, the whole list of children <option> is disabled.
Set or get the label for the group.
The HTMLOptionElement interface represents <option> elements and inherits all classes and methods of the HTMLElement interface.
Contains the initial value of the selected HTML attribute, indicating whether the option is selected by default or not.
Reflects the value of the disabled HTML attribute, which indicates that the option is unavailable to be selected. An option can also be disabled if it is a child of an <optgroup> element that is disabled.
If the option is a descendent of a <select> element, then this property has the same value as the form property of the corresponding HTMLSelectElement object; otherwise, it is null.
The position of the option within the list of options it belongs to, in tree-order. If the option is not part of a list of options, like when it is part of the <datalist> element, the value is 0.
Reflects the value of the label HTML attribute, which provides a label for the option. If this attribute isn't specifically set, reading it returns the element's text content.
Indicates whether the option is currently selected.
Contains the text content of the element.
Reflects the value of the value HTML attribute, if it exists; otherwise reflects value of the Node.textContent property.
The HTMLOutputElement interface provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements.
The default value of the element, initially the empty string.
Indicates the control's form owner, reflecting the form HTML attribute if it is defined.
Reflects the for HTML attribute, containing a list of IDs of other elements in the same document that contribute to (or otherwise affect) the calculated value.
Reflects the name HTML attribute, containing the name for the control that is submitted with form data.
Must be the string output.
A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
The validity states that this element is in.
The behavior of this property is subject to an open specification bug (https://www.w3.org/Bugs/Public/show_bug.cgi?id=10912), as some browser maker are not happy with what is specified. It is unclear which will be the final the outcome of this.
The standard behavior is to always return false because output objects are never candidates for constraint validation.
The proposed new behavior, implemented in Firefox since Gecko 2.0 is to use this property to indicate whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation (See bug 604673 (https://bugzilla.mozilla.org/show_bug.cgi?id=604673)).
The behavior of this property is subject to an open specification bug (https://www.w3.org/Bugs/Public/show_bug.cgi?id=10912), as some browser maker are not happy with what is specified. It is unclear which will be the final the outcome of this.
The standard behavior is to always return true because output objects are never candidates for constraint validation.
The proposed new behavior, implemented in Firefox since Gecko 2.0 is to return false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an "invalid" event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints (See bug 604673 (https://bugzilla.mozilla.org/show_bug.cgi?id=604673)).
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
The custom validity message
The HTMLParagraphElement interface provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements.
The HTMLMetaElement interface contains descriptive metadata about a document. Itt inherits all of the properties and methods described in the HTMLElement interface.
Gets or sets the value of meta-data property.
Gets or sets the name of an HTTP response header to define for a document.
Gets or sets the name of a meta-data property to define for a document.
The HTMLMapElement interface provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
Is a DOMString representing the <map> element for referencing it other context. If the id attribute is set, this must have the same value; and it cannot be null or empty.
Is a live HTMLCollection representing the <area> elements associated to this <map>.
Is a live HTMLCollection representing the <img> and <object> elements associated to this <map>.
The HTMLLinkElement interface represents reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.
Gets or sets whether the link is disabled; currently only used with style sheet links.
Gets or sets the URI for the target resource.
Gets or sets the language code for the linked resource.
Gets or sets a list of one or more media formats to which the resource applies.
Gets or sets the forward relationship of the linked resource from the document to the resource.
Is a DOMTokenList that reflects the rel HTML attribute, as a list of tokens.
Is a DOMSettableTokenList that reflects the sizes HTML attribute, as a list of tokens.
Returns the StyleSheet object associated with the given element, or null if there is none.
Gets or sets the MIME type of the linked resource.
The HTMLLIElement interface expose specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements.
The type of the bullets, "disc", "square" or "circle". As the standard way of defining the list type is via the CSS list-style-type property, use the CSSOM methods to set it via a script.
Indicates the ordinal position of the list element inside a given <ol>. It reflects the value attribute of the HTML <li> element, and can be smaller than 0. If the <li> element is not a child of an <ol> element, the property has no meaning.
The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface.
The form that this legend belongs to. If the legend has a fieldset element as its parent, then this attribute returns the same value as the form attribute on the parent fieldset element. Otherwise, it returns null.
The HTMLImageElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <img> elements.
True if the browser has fetched the image, and it is in a supported image type that was decoded without errors.
The CORS setting for this image element. See CORS settings attributes for details.
Reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels.
Reflects the ismap HTML attribute, indicating that the image is part of a server-side image map.
Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0.
Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0.
Reflects the src HTML attribute, containing the full URL of the image including base URI.
The srcset attribute allows authors to provide a set of images to handle graphical displays of varying dimensions and pixel densities.
Reflects the usemap HTML attribute, containing a partial URL of a map element.
Reflects the width HTML attribute, indicating the rendered width of the image in CSS pixels.
The horizontal offset from the nearest layer. (Mimic an old Netscape 4 behavior)
The vertical offset from the nearest layer. (Mimic an old Netscape 4 behavior)
The HTMLIFrameElement interface provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
Indicates whether or not the inline frame is willing to be placed into full screen mode. See Using full-screen mode for details.
The active document in the inline frame's nested browsing context.
The window proxy for the nested browsing context.
Indicates whether to create borders between frames.
Reflects the height HTML attribute, indicating the height of the frame.
URI of a long description of the frame.
Height of the frame margin.
Width of the frame margin.
Reflects the name HTML attribute, containing a name by which to refer to the frame.
Reflects the sandbox HTML attribute, indicating extra restrictions on the behavior of the nested content.
Indicates whether the browser should provide scrollbars for the frame.
Reflects the seamless HTML attribute, indicating that the inline frame should be rendered seamlessly within the parent document.
Reflects the src HTML attribute, containing the address of the content to be embedded.
The content to display in the frame.
Reflects the width HTML attribute, indicating the width of the frame.
The HTMLHRElement interface provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements.
The name of the color of the rule.
Sets the rule to have no shading.
The height of the rule.
The width of the rule on the page.
The HTMLHtmlElement interface serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface.
You can retrieve the HTMLHtmlElement object for a given document by reading the value of the document.documentElement property.
The HTMLHeadElement interface contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface.
The HTMLHeadingElement interface represents the different heading elements.
Creates a heading element of the specified type
Specifies the type of heading
The HTMLLabelElement interface gives access to properties specific to <label> elements. It inherits from HTMLElement.
The labeled control.
The form owner of this label.
The ID of the labeled control. Reflects the for attribute.
The <keygen> elements expose the HTMLKeygenElement interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of keygen elements.
Reflects the autofocus HTML attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).
Reflects the autofocus HTML attribute, indicating that the form control should have input focus when the page loads.
Reflects the challenge HTML attribute, containing a challenge string that is packaged with the submitted key.
Reflects the disabled HTML attribute, indicating that the control is not available for interaction.
Indicates the control's form owner, reflecting the form HTML attribute if it is defined.
Reflects the keytype HTML attribute, containing the type of key used.
A list of <label> elements that are labels for this element.
Must be the value keygen.
A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
The validity state that this element is in.
Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation.
Removes focus from input; keystrokes will subsequently go nowhere.
Always returns true because keygen objects are never candidates for constraint validation.
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
The HTMLParamElement interface provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
Is a DOMString representing the name of the parameter. It reflects the name attribute.
The HTMLPreElement interface expose specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating block of preformatted text.
The HTMLProgressElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.
Is a double value reflecting the content attribute of the same name, limited to numbers greater than zero. Its default value is 1.0.
Returns a double value returning the result of dividing the current value (value) by the maximum value (max); if the progress bar is an indeterminate progress bar, it returns -1.
Is a double value returning the current value; if the progress bar is an indeterminate progress bar, it returns 0.
Returns NodeList containing the list of <label> elements that are labels for this element.
The HTMLQuoteElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element.
Reflects the cite HTML attribute, containing a URL for the source of the quotation.
Specifies the type of quote: <blockquote> or <q>
<blockquote></blockquote>
<q></q>
HTML script elements expose the HTMLScriptElement interface, which provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <script> elements.
The async and defer attributes are boolean attributes that indicate how the script should be executed. The defer and async attributes must not be specified if the src attribute is not present.
There are three possible modes that can be selected using these attributes. If the async attribute is present, then the script will be executed asynchronously, as soon as it is available. If the async attribute is not present but the defer attribute is present, then the script is executed when the page has finished parsing. If neither attribute is present, then the script is fetched and executed immediately, before the user agent continues parsing the page.
Note: The exact processing details for these attributes are, for mostly historical reasons, somewhat non-trivial, involving a number of aspects of HTML. The implementation requirements are therefore by necessity scattered throughout the specification. These algorithms describe the core of this processing, but these algorithms reference and are referenced by the parsing rules for <script> start and end tags in HTML, in foreign content, and in XML, the rules for the document.write() method, the handling of scripting, etc.
The defer attribute may be specified even if the async attribute is specified, to cause legacy Web browsers that only support defer (and not async) to fall back to the defer behavior instead of the synchronous blocking behavior that is the default.
Represents the character encoding of the external script resource. It reflects the charset attribute.
Is a DOMString that corresponds to the CORS setting for this script element. See CORS settings attributes for details. It controls, for scripts that are obtained from other origins, whether error information will be exposed.
The async and defer attributes are boolean attributes that indicate how the script should be executed. The defer and async attributes must not be specified if the src attribute is not present.
There are three possible modes that can be selected using these attributes. If the async attribute is present, then the script will be executed asynchronously, as soon as it is available. If the async attribute is not present but the defer attribute is present, then the script is executed when the page has finished parsing. If neither attribute is present, then the script is fetched and executed immediately, before the user agent continues parsing the page.
Note: The exact processing details for these attributes are, for mostly historical reasons, somewhat non-trivial, involving a number of aspects of HTML. The implementation requirements are therefore by necessity scattered throughout the specification. These algorithms describe the core of this processing, but these algorithms reference and are referenced by the parsing rules for <script> start and end tags in HTML, in foreign content, and in XML, the rules for the document.write() method, the handling of scripting, etc.
The defer attribute may be specified even if the async attribute is specified, to cause legacy Web browsers that only support defer (and not async) to fall back to the defer behavior instead of the synchronous blocking behavior that is the default.
The IDL attribute text must return a concatenation of the contents of all the Text nodes that are children of the <script> element (ignoring any other nodes such as comments or elements), in tree order. On setting, it must act the same way as the textContent IDL attribute.
Note: When inserted using the document.write() method, <script> elements execute (typically synchronously), but when inserted using innerHTML and outerHTML attributes, they do not execute at all.
Represents the MIME type of the script. It reflects the type attribute.
Represents gives the address of the external script resource to use. It reflects the src attribute.
HTML <select> elements share all of the properties and methods of other HTML elements described in the element section. They also have the specialized interface HTMLSelectElement.
Reflects the autofocus HTML attribute, which indicates whether the control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified.
Reflects the disabled HTML attribute, which indicates whether the control is disabled. If it is disabled, it does not accept clicks.
The form that this element is associated with. If this element is a descendant of a form element, then this attribute is the ID of that form element. If the element is not a descendant of a form element, then:
HTML5 The attribute can be the ID of any form element in the same document.
HTML 4 The attribute is null.
A list of label elements associated with this select element.
The number of <option> elements in this select element.
Reflects the multiple HTML attribute, whichindicates whether multiple items can be selected.
Reflects the name HTML attribute, containing the name of this control used by servers and DOM search functions.
The set of <option> elements contained by this element. Read only.
Reflects the required HTML attribute, which indicates whether the user is required to select a value before submitting the form.
The index of the first selected <option> element. The value -1 is returned if no element is selected.
The set of options that are selected.
Reflects the size HTML attribute, which contains the number of visible items in the control. The default is 1, HTML5 unless multiple is true, in which case it is 4.
Reflects the src HTML attribute, which specifies a URI for the location of an image to display on the graphical submit button, if the value of type is image; otherwise it is ignored.
The form control's type. When multiple is true, it returns select-multiple; otherwise, it returns select-one. Read only.
A localized message that describes the validation constraints that the control does not satisfy (if any). This attribute is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints. Read only.
The validity states that this control is in. Read only.
The value of this form control, that is, of the first selected option.
Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. Read only.
Adds an element to the collection of option elements for this select element.
An item to add to the collection of options.
Adds an element to the collection of option elements for this select element.
An item to add to the collection of options.
An item that the new item should be inserted before. If this parameter is null, the new element is appended to the end of the collection.
Adds an element to the collection of option elements for this select element.
An item to add to the collection of options.
An index of an item that the new item should be inserted before. If the index does not exist, the new element is appended to the end of the collection.
Checks whether the element has any constraints and whether it satisfies them. If the element fails its constraints, the browser fires a cancelable invalid event at the element (and returns false).
A false value if the select element is a candidate for constraint evaluation and it does not satisfy its constraints. Returns true if the element is not constrained, or if it satisfies its constraints.
Gets an item from the options collection for this select element. You can also access an item by specifying the index in array-style brackets or parentheses, without calling this method explicitly.
The zero-based index into the collection of the option to get.
The node at the specified index, or null if such a node does not exist in the collection.
Gets the item in the options collection with the specified name. The name string can match either the id or the name attribute of an option node. You can also access an item by specifying the name in array-style brackets or parentheses, without calling this method explicitly.
The name of the option to get.
- An OptionElement, if there is exactly one match.
- null if there are no matches.
- An OptionsCollection in tree order of nodes whose name or id attributes match the specified name.
Removes the element at the specified index from the options collection for this select element.
The zero-based index of the option element to remove from the collection.
Sets the custom validity message for the selection element to the specified message. Use the empty string to indicate that the element does not have a custom validity error.
The string to use for the custom validity message.
The HTMLSourceElement interface provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements.
Reflects the media HTML attribute, containing the intended type of the media resource.
Reflects the src HTML attribute, containing the URL for the media resource.
Reflects the type HTML attribute, containing the type of the media resource.
The HTMLStyleElement interface represents a <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle.
This interface doesn't allow to manipulate the CSS it contains (in most case). To manipulate CSS, see Using dynamic styling information for an overview of the objects used to manipulate specified CSS properties using the DOM.
Is a DOMString representing the intended destination medium for style information.
Is a DOMString representing the type of style being applied by this statement.
Is a Boolean value, with true if the stylesheet is disabled, and false if not.
Returns the StyleSheet object associated with the given element, or null if there is none
The HTMLTableCaptionElement interface special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements.
The HTMLTableCellElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.
The HTML elements implementing this interface: <th> and <td>.
The CurrentTarget type of all TableCellElement's events
Is an unsigned long that represents the number of columns this cell must span. It reflects the colspan attribute.
Is an unsigned long that represents the number of rows this cell must span. It reflects the rowspan attribute.
Is a DOMSettableTokenList describing a list of id of <th> elements that represents headers associated with the cell. It reflects the headers attribute.
Is a long representing the cell position in the cells collection of the <tr> it belongs to. If the cell doesn't belong to a <tr>, it returns -1.
The non-generic TableCellElement class. Events' CurrentTarget has the TableCellElement type.
The HTMLTableColElement interface provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements.
The HTML element implementing this interface: <col> and <colgroup>.
Reflects the span HTML attribute, indicating the number of columns to apply this object's attributes to. Must be a positive integer.
Specifies the type of a table column. It can be a single <col> or a group <colgroup> column.
<col></col>
<colgroup></colgroup>
The HTMLTableElement interface provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.
Is an HTMLTableCaptionElement representing the first <caption> that is a child of the element, or null if none is found. When set, if the object doesn't represent a <caption>, a DOMException with the HierarchyRequestError name is thrown. If a correct object is given, it is inserted in the tree as the first child of this element and the first <caption> that is a child of this element is removed from the tree, if any.
Is an HTMLTableSectionElement representing the first <thead> that is a child of the element, or null if none is found. When set, if the object doesn't represent a <thead>, a DOMException with the HierarchyRequestError name is thrown. If a correct object is given, it is inserted in the tree immediately before the first element that is neither a <caption>, nor a <colgroup>, or as the last child if there is no such element, and the first <thead> that is a child of this element is removed from the tree, if any.
Is an HTMLTableSectionElement representing the first <tfoot> that is a child of the element, or null if none is found. When set, if the object doesn't represent a <tfoot>, a DOMException with the HierarchyRequestError name is thrown. If a correct object is given, it is inserted in the tree immediately before the first element that is neither a <caption>, a <colgroup>, nor a <thead>, or as the last child if there is no such element, and the first <tfoot> that is a child of this element is removed from the tree, if any.
Returns a live HTMLCollection containing all the rows of the element, that is all <tr> that are a child of the element, or a child or one of its <thead>, <tbody> and <tfoot> children. The rows members of a <thead> appear first, in tree order, and those members of a <tbody> last, also in tree order. The HTMLCollection is live and is automatically updated when the HTMLTableElement changes.
Returns a live HTMLCollection containing all the <tbody> of the element. The HTMLCollection is live and is automatically updated when the HTMLTableElement changes.
Returns an HTMLElement representing the first <thead> that is a child of the element. If none is found, a new one is created and inserted in the tree immediately before the first element that is neither a <caption>, nor a <colgroup>, or as the last child if there is no such element.
Removes the first <thead> that is a child of the element.
Returns an HTMLElement representing the first <tfoot> that is a child of the element. If none is found, a new one is created and inserted in the tree immediately before the first element that is neither a <caption>, a <colgroup>, nor a <thead>, or as the last child if there is no such element.
Removes the first <tfoot> that is a child of the element.
Returns an HTMLElement representing the first <caption> that is a child of the element. If none is found, a new one is created and inserted in the tree as the first child of the <table> element.
Removes the first <caption> that is a child of the element.
Inserts a new row in the table and returns a reference to the row.
If index is -1 or equal to the number of rows, the row is appended as the last row. If index is greater than the number of rows, an IndexSizeError exception will result.
If index is omitted it defaults to -1.
If a table has multiple tbody elements, by default, the new row is inserted into the last tbody.
The row index of the new row. Defaults to -1.
Returns the TableRowElement representing the new row of the table.
Removes the row corresponding to the index given in parameter. If the index value is -1 the last row is removed; if it smaller than -1 or greater than the amount of rows in the collection, a DOMException with the value IndexSizeError is raised.
The HTMLTableHeaderCellElement interface provides special properties and methods (beyond the regular HTMLTableCellElement and HTMLElement interfaces it also has available to it by inheritance) for manipulating the layout and presentation of table header cells in an HTML document.
Is a DOMString containing a name used to refer to this cell in other context. It reflects the abbr attribute.
Is a DOMString representing an enumerated value indicating which cells the header cell applies to.
It reflects the scope attribute and has one of the following values: "row", "col", "colgroup", or "rowgroup". If the attribute is in the auto state, or if an invalid value is set for the attribute, scope will be returns the empty string, "".
The scope attribute specifies whether a header cell is a header for a column, row, or group of columns or rows.
Specifies that the cell is a header for a column
Specifies that the cell is a header for a row
Specifies that the cell is a header for a group of columns
Specifies that the cell is a header for a group of rows
The HTMLTableDataCellElement interface provides special properties and methods (beyond the regular HTMLTableCellElement and HTMLElement interfaces it also has available to it by inheritance) for manipulating the layout and presentation of table data cells in an HTML document.
The HTMLTableRowElement interface provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.
Returns a live HTMLCollection containing the cells in the row. The HTMLCollection is live and is automatically updated when cells are added or removed.
Returns a long value which gives the logical position of the row within the entire table. If the row is not part of a table, returns -1.
Returns a long value which gives the logical position of the row within the table section it belongs to. If the row is not part of a section, returns -1.
Removes the cell at the given position in the row. If the given position is greater (or equal as it starts at zero) than the amount of cells in the row, or is smaller than 0, it raises a DOMException with the IndexSizeError value.
The position of the cell in the row
Inserts a new cell into a table row and returns a reference to the cell.
If index is -1 or equal to the number of cells, the cell is appended as the last cell in the row.
If index is greater than the number of cells, an IndexSizeError exception will result.
If index is omitted it defaults to -1.
The cell index of the new cell. Defaults to -1.
Returns the TableDataCellElement representing the new cell of the row.
The HTMLTableSectionElement interface provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.
The HTML elements implementing this interface: <tfoot>, <thead>, and <tbody>.
Returns a live HTMLCollection containing the rows in the section. The HTMLCollection is live and is automatically updated when rows are added or removed.
Removes the cell at the given position in the section. If the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than 0, it raises a DOMException with the IndexSizeError value.
The position of the row to delete
Inserts a new row just before the given position in the section.
If the given position is -1, it appends the row to the end of section.
If the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than -1, it raises a DOMException with the IndexSizeError value.
The possition of a new row to insert
Returns a TableRowElement object that represents a new row added to a table element.
Specifies the type of a table section. It can be a footer <tfoot>, a header <thead> or a body <tbody> section.
<tbody></tbody>
<tfoot></tfoot>
<thead></thead>
The HTMLTextAreaElement interface, which provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <textarea> elements.
Reflects the autofocus HTML attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).
Reflects the cols HTML attribute, indicating the visible width of the text area.
The default value as originally specified in HTML that created this object.
Reflects the disabled HTML attribute, indicating that the control is not available for interaction. The input values will not be submitted with the form. See also readonly
The containing form element, if this element is in a form. If this element is not contained in a form element:
HTML5 this can be the id attribute of any <form> element in the same document. Even if the attribute is set on <input>, this property will be null, if it isn't the id of a <form> element.
HTML 4 this must be null.
Reflects the maxlength HTML attribute, containing the maximum length of text (in Unicode code points) that the value can be changed to. The constraint is evaluated only when the value is changed
Reflects the name HTML attribute, containing a name that identifies the element when submitting the form.
Reflects the placeholder HTML attribute, containing a hint to the user of what can be entered in the control. The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control.
HTML5This is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type.
Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
Reflects the rows HTML attribute, indicating the number of visible text lines for the control.
The direction in which selection occurred. This is "forward" if selection was performed in the start-to-end direction of the current locale, or "backward" for the opposite direction. This can also be "none" if the direction is unknown."
The index of the end of selected text.
The index of the beginning of selected text. When nothing is selected, this is also the caret position inside of the input element.
The string textarea.
A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willvalidate is false), or it satisfies its constraints.
The validity state that this element is in.
The raw value contained in the control.
Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation.
Reflects the wrap HTML attribute, indicating how the control wraps text. If this attribute is not specified, soft is its default value.
Returns false if the button is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an invalid event at the control. It returns true if the control is not a candidate for constraint validation, or if it satisfies its constraints.
Selects the contents of the control.
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
Selects a range of text in the element (but does not focus it). The optional selectionDirection parameter may be "forward" or "backward" to establish the direction in which selection was set, or "none" if the direction is unknown or not relevant. The default is "none". Specifying a selectionDirection parameter sets the value of the selectionDirection property.
Selects a range of text in the element (but does not focus it). The optional selectionDirection parameter may be "forward" or "backward" to establish the direction in which selection was set, or "none" if the direction is unknown or not relevant. The default is "none". Specifying a selectionDirection parameter sets the value of the selectionDirection property.
Replaces a range of text with the new text. Supported input types: text, search, url, tel, password.
Replaces a range of text with the new text. Supported input types: text, search, url, tel, password.
Replaces a range of text with the new text. Supported input types: text, search, url, tel, password.
Indicates how the control wraps text.
The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the cols attribute must be specified.
The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.
The HTMLSpanElement interface represents a <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
The HTMLDivElement interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating div elements.
The HTMLFormElement interface provides methods to create and modify <form> elements; it inherits from properties and methods of the HTMLElement interface.
Reflects the accept-charset HTML attribute, containing a list of character encodings that the server accepts.
Reflects the action HTML attribute, containing the URI of a program that processes the information submitted by the form.
Reflects the autocomplete HTML attribute, containing a string that indicates whether the controls in this form can have their values automatically populated by the browser.
All the form controls belonging to this form element.
The HTMLFormElement.enctype property represents the content type of the form element.
Reflects the enctype HTML attribute, indicating the type of content that is used to transmit the form to the server. Only specified values can be set.
The number of controls in the form.
Reflects the method HTML attribute, indicating the HTTP method used to submit the form. Only specified values can be set.
Reflects the name HTML attribute, containing the name of the form.
Reflects the novalidate HTML attribute, indicating that the form should not be validated.
Reflects the target HTML attribute, indicating where to display the results received from submitting the form.
Returns true if all controls that are subject to constraint validation satisfy their constraints, or false if some controls do not satisfy their constraints. Fires an event named invalid at any control that does not satisfy its constraints; such controls are considered invalid if the event is not canceled.
Submits the form to the server.
Resets the forms to its initial state.
Gets the item in the elements collection at the specified index, or null if there is no item at that index. You can also specify the index in array-style brackets or parentheses after the form object name, without calling this method explicitly.
Gets the item or list of items in elements collection whose name or id match the specified name, or null if no items match. You can also specify the name in array-style brackets or parentheses after the form object name, without calling this method explicitly.
The name to match the Elements' name and id
An Element or an HTMLCollection
Gets the item in the elements collection at the specified index, or null if there is no item at that index. You can also specify the index in array-style brackets or parentheses after the form object name, without calling this method explicitly.
Gets the item or list of items in elements collection whose name or id match the specified name, or null if no items match. You can also specify the name in array-style brackets or parentheses after the form object name, without calling this method explicitly.
The name to match the Elements' name and id
An Element or an HTMLCollection
The HTMLAnchorElement interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of such elements.
Is a DOMString representing the character encoding of the linked resource.
Is a DOMString representing a comma-separated list of coordinates.
Is a DOMString indicating that the linked resource is intended to be downloaded rather than displayed in the browser. The value represent the proposed name of the file. If the name is not a valid filename of the underlying OS, browser will adapt it. The value is a URL with a scheme like http:, file:, data: or even blob: (created with URL.createObjectURL).
Is a DOMString that reflects the href HTML attribute, containing a valid URL of a linked resource.
Is a DOMString representing the hostname and port (if it's not the default port) in the referenced URL.
Is a DOMString representing the hostname in the referenced URL.
Is a DOMString that reflects the href HTML attribute, containing a valid URL of a linked resource.
Is a DOMString that reflects the hreflang HTML attribute, indicating the language of the linked resource.
Is a DOMString that reflects the media HTML attribute, indicating the intended media for the linked resource.
Is a DOMString representing the anchor name.
Is a DOMString containing the password specified before the domain name.
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
Is a DOMString representing the path name component, if any, of the referenced URL.
Is a DOMString representing the port component, if any, of the referenced URL.
Is a DOMString representing the protocol component, including trailing colon (':'), of the referenced URL.
Is a DOMString that reflects the rel HTML attribute, specifying the relationship of the target object to the link object.
Returns a DOMTokenList that reflects the rel HTML attribute, as a list of tokens.
Is a DOMString representing that the rev HTML attribute, specifying the relationship of the link object to the target object
Is a DOMString representing tThe search element, including leading question mark ('?'), if any, of the referenced URL.
The URLUtils.searchParams property is a URLSearchParams containing the query/search parameters of the URL.
Is a DOMString representing the shape of the active area.
Is a DOMString that reflects the target HTML attribute, indicating where to display the linked resource.
Is a DOMString being a synonym for the Node.textContent property.
Is a DOMString that reflects the type HTML attribute, indicating the MIME type of the linked resource.
Is a DOMString containing the username specified before the domain name.
The HTMLButtonElement interface provides properties and methods (beyond the button object interface it also has available to them by inheritance) for manipulating the layout and presentation of button elements.
The control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified.
The control is disabled, meaning that it does not accept any clicks.
The form that this button is associated with. If the button is a descendant of a form element, then this attribute is the ID of that form element.
If the button is not a descendant of a form element, then the attribute can be the ID of any form element in the same document it is related to, or the null value if none matches.
The URI of a resource that processes information submitted by the button. If specified, this attribute overrides the action attribute of the <form> element that owns this element.
The type of content that is used to submit the form to the server. If specified, this attribute overrides the enctype attribute of the <form> element that owns this element.
The HTTP method that the browser uses to submit the form. If specified, this attribute overrides the method attribute of the <form> element that owns this element.
Indicates that the form is not to be validated when it is submitted. If specified, this attribute overrides the enctype attribute of the <form> element that owns this element.
A name or keyword indicating where to display the response that is received after submitting the form. If specified, this attribute overrides the target attribute of the <form> element that owns this element.
A list of <label> elements that are labels for this button.
The name of the object when submitted with a form. HTML5 If specified, it must not be the empty string.
Indicates the behavior of the button.
A localized message that describes the validation constraints that the control does not satisfy (if any). This attribute is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
The validity states that this button is in.
The current form control value of the button.
Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from constraint validation.
The HTMLInputElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of input elements.
If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored. The value must be a comma-separated list of unique content type specifiers:
A file extension starting with the STOP character (U+002E). (E.g.: ".jpg,.png,.doc")
A valid MIME type with no extensions
audio/* representing sound files HTML5
video/* representing video files HTML5
image/* representing image files HTML5
Reflects the alt HTML attribute, containing alternative text to use when type is image.
Reflects the autocomplete HTML attribute, indicating whether the value of the control can be automatically completed by the browser. Ignored if the value of the type attribute is hidden, checkbox, radio, file, or a button type (button, submit, reset, image).
Reflects the autofocus HTML attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).
This attribute should be defined as a unique value. If the value of the type attribute is search, previous search term values will persist in the dropdown across page load.
The current state of the element when type is checkbox or radio.
The default state of a radio button or checkbox as originally specified in HTML that created this object.
The default value as originally specified in HTML that created this object.
Reflects the disabled HTML attribute, indicating that the control is not available for interaction. The input values will not be submitted with the form. See also readonly
A list of selected files.
The containing form element, if this element is in a form. If this element is not contained in a form element:
HTML5 this can be the id attribute of any <form> element in the same document. Even if the attribute is set on <input>, this property will be null, if it isn't the id of a <form> element.
HTML 4 this must be null.
Reflects the formaction HTML attribute, containing the URI of a program that processes information submitted by the element. If specified, this attribute overrides the action attribute of the <form> element that owns this element.
Reflects the formenctype HTML attribute, containing the type of content that is used to submit the form to the server. If specified, this attribute overrides the enctype attribute of the <form> element that owns this element.
Reflects the formmethod HTML attribute, containing the HTTP method that the browser uses to submit the form. If specified, this attribute overrides the method attribute of the <form> element that owns this element.
Reflects the formnovalidate HTML attribute, indicating that the form is not to be validated when it is submitted. If specified, this attribute overrides the novalidate attribute of the <form> element that owns this element.
Reflects the formtarget HTML attribute, containing a name or keyword indicating where to display the response that is received after submitting the form. If specified, this attribute overrides the target attribute of the form element that owns this element.
Reflects the height HTML attribute, which defines the height of the image displayed for the button, if the value of type is image.
Indicates that a checkbox is neither on nor off.
A list of <label> elements that are labels for this element.
Identifies a list of pre-defined options to suggest to the user. The value must be the id of a <datalist> element in the same document. The browser displays only options that are valid values for this input element. This attribute is ignored when the type attribute's value is hidden, checkbox, radio, file, or a button type.
Reflects the max HTML attribute, containing the maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value.
Reflects the maxlength HTML attribute, containing the maximum length of text (in Unicode code points) that the value can be changed to. The constraint is evaluated only when the value is changed
Reflects the min HTML attribute, containing the minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.
Reflects the multiple HTML attribute, indicating whether more than one value is possible (e.g., multiple files).
Reflects the name HTML attribute, containing a name that identifies the element when submitting the form.
Reflects the pattern HTML attribute, containing a regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
Reflects the placeholder HTML attribute, containing a hint to the user of what can be entered in the control. The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control.
HTML5This is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type.
Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form.
The direction in which selection occurred. This is "forward" if selection was performed in the start-to-end direction of the current locale, or "backward" for the opposite direction. This can also be "none" if the direction is unknown."
The index of the end of selected text.
The index of the beginning of selected text. When nothing is selected, this is also the caret position inside of the input element.
Reflects the size HTML attribute, containing size of the control. This value is in pixels unless the value of type is text or password, in which case, it is an integer number of characters. HTML5 Applies only when type is set to text, search, tel, url, email, or password; otherwise it is ignored.
Reflects the src HTML attribute, which specifies a URI for the location of an image to display on the graphical submit button, if the value of type is image; otherwise it is ignored.
Reflects the step HTML attribute, which works with min and max to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this is not set to any, the control accepts only values at multiples of the step value greater than the minimum.
The position of the element in the tabbing navigation order for the current document.
Reflects the type HTML attribute, indicating the type of control to display.
A client-side image map.
A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willvalidate is false), or it satisfies its constraints.
The validity state that this element is in.
Current value in the control.
The value of the element, interpreted as a date, or null if conversion is not possible.
The value of the element, interpreted as one of the following in order:
a time value
a number
null if conversion is not possible
Reflects the width HTML attribute, which defines the width of the image displayed for the button, if the value of type is image.
Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation.
Removes focus from input; keystrokes will subsequently go nowhere.
Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an invalid event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints.
Simulates a click on the element.
Focus on input; keystrokes will subsequently go to this element.
Selects the input text in the element, and focuses it so the user can subsequently replace the whole entry.
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
The custom validity message
Selects a range of text in the element (but does not focus it). The optional selectionDirection parameter may be "forward" or "backward" to establish the direction in which selection was set, or "none" if the direction is unknown or not relevant. The default is "none". Specifying a selectionDirection parameter sets the value of the selectionDirection property.
Selects a range of text in the element (but does not focus it). The optional selectionDirection parameter may be "forward" or "backward" to establish the direction in which selection was set, or "none" if the direction is unknown or not relevant. The default is "none". Specifying a selectionDirection parameter sets the value of the selectionDirection property.
Replaces a range of text with the new text. Supported input types: text, search, url, tel, password.
Replaces a range of text with the new text. Supported input types: text, search, url, tel, password.
Replaces a range of text with the new text. Supported input types: text, search, url, tel, password.
Decrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
if the method is not applicable to for the current type value.
if the element has no step value.
if the value cannot be converted to a number.
if the resulting value is above the max or below the min.
Decrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
if the method is not applicable to for the current type value.
if the element has no step value.
if the value cannot be converted to a number.
if the resulting value is above the max or below the min.
Increments the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
if the method is not applicable to for the current type value.
if the element has no step value.
if the value cannot be converted to a number.
if the resulting value is above the max or below the min.
Increments the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
if the method is not applicable to for the current type value.
if the element has no step value.
if the value cannot be converted to a number.
if the resulting value is above the max or below the min.
The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.
The browser can automatically complete the value based on values that the user has entered during previous uses.
Indicates the behavior of the button.
The button submits the form. This is the default value if the attribute is not specified, HTML5 or if it is dynamically changed to an empty or invalid value.
The button resets the form.
The button does nothing.
The button displays a menu.
The type of control to display.
A push button with no default behavior.
A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox).
HTML5 A control for specifying a color. A color picker's UI has no required features other than accepting simple colors as text (more info).
HTML5 A control for entering a date (year, month, and day, with no time).
HTML5 A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone.
HTML5 A control for entering a date and time, with no time zone.
HTML5 A field for editing an e-mail address. The input value is validated to contain either the empty string or a single valid e-mail address before submitting. The :valid and :invalid CSS pseudo-classes are applied as appropriate.
A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select.
A control that is not displayed, but whose value is submitted to the server.
A graphical submit button. You must use the src attribute to define the source of the image and the alt attribute to define alternative text. You can use the height and width attributes to define the size of the image in pixels.
HTML5 A control for entering a month and year, with no time zone.
HTML5 A control for entering a floating point number.
A single-line text field whose value is obscured. Use the maxlength attribute to specify the maximum length of the value that can be entered.
A radio button. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected by default. Radio buttons that have the same value for the name attribute are in the same "radio button group"; only one radio button in a group can be selected at one time.
HTML5 A control for entering a number whose exact value is not important.
A button that resets the contents of the form to default values.
HTML5 A single-line text field for entering search strings; line-breaks are automatically removed from the input value.
A button that submits the form.
HTML5 A control for entering a telephone number; line-breaks are automatically removed from the input value, but no other syntax is enforced. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate.
A single-line text field; line-breaks are automatically removed from the input value.
HTML5 A control for entering a time value with no time zone.
HTML5 A field for editing a URL. The input value is validated to contain either the empty string or a valid absolute URL before submitting. Line-breaks and leading or trailing whitespace are automatically removed from the input value. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate.
HTML5 A control for entering a date consisting of a week-year number and a week number with no time zone.
The HTMLTitleElement interface contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface.
The string representing the text of the document's title.
Represents a text track.
Get the type of the text track
Get the label of the text track
Get the language of the text track
get or set if the track is active
Get a list of cues as a TextTrackCueList object
Get the currently active text track cues as a TextTrackCueList object
Add a cue to the list of cues
The cue to add
Remove a cue from the list of cues
Represents the available text tracks for the the audio/video.
Get the number of text tracks available in the audio/video
Get a TextTrack object by index
The index of a TextTrack
The TextTrack instance
The possible types of a text track
Subtitles
Caption
descriptions
Chapters
MetaData
The possible modes of a text track
Disabled
Hidden
Showing
The TextTrackCue object represents the individual cues, and provides methods and properties to access the data and events to act on changes to cue state.
Returns the ending time, in seconds, for a text track cue.
Returns the TextTrackCue identifier.
Returns the pause-on-exit flag on a TextTrackCue. When the flag is true, playback will pause when it reaches the cue's endTime.
Returns the text track cue start time in seconds.
Gets TextTrackCue text in un-parsed form.
Returns the TextTrack object that the TextTrackCue belongs to, or null otherwise.
Returns the TextTrackCue text (caption) as a document fragment consisting of HTML elements and other DOM nodes.
TextTrackCueList represents a dynamically updating list of text track cues.
Returns the number of tracks in a TextTrackCueList
Returns the TextTrackCue (in cue order) for a specified id.
The id of the TextTrackCue
The TextTrackCue instance
Returns a track from a list that corresponds with the given index based on track order.
The index of the TextTrackCue
The TextTrackCue instance
The HTMLTrackElement interface provides access to the properties of <track> elements, as well as methods to manipulate them.
The HTML <track> element is used as a child of the media elements — <audio> and <video>. It lets you specify timed text tracks (or time-based data), for example to automaticaly handle subtitles.
Reflects the kind HTML attribute, indicating how the text track is meant to be used. Possible values are: subtitles, captions, descriptions, chapters, metadata. See kind attribute documentation for details.
Reflects the src HTML attribute, indicating the address of the text track data.
Reflects the srclang HTML attribute, indicating the language of the text track data.
Reflects the label HTML attribute, indicating a user-readable title for the track.
Reflects the default HTML attribute, indicating that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate.
The readiness state of the track.
NONE 0 Indicates that the text track's cues have not been obtained.
LOADING 1 Indicates that the text track is loading and there have been no fatal errors encountered so far. Further cues might still be added to the track by the parser.
LOADED 2 Indicates that the text track has been loaded with no fatal errors.
ERROR 3 Indicates that the text track was enabled, but when the user agent attempted to obtain it, this failed in some way. Some or all of the cues are likely missing and will not be obtained.
The track element's text track data.
The HTMLUListElement interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements.
The HTML unordered list element (<ul>) represents an unordered list of items, namely a collection of items that do not have a numerical ordering, and their order in the list is meaningless. Typically, unordered-list items are displayed with a bullet, which can be of several forms, like a dot, a circle or a squared. The bullet style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type property.
The HTMLUnknownElement interface represents an invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
Obsolete or non-standard HTML elements implementing this interface: <bgsound>, <blink>, <isindex>, <multicol>, <nextid>, <rb>, <spacer>
The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.
The HTML <canvas> Element can be used to draw graphics via scripting (usually JavaScript). For example, it can be used to draw graphs, make photo compositions or even perform animations. You may (and should) provide alternate content inside the <canvas> block. That content will be rendered both on older browsers that don't support canvas and in browsers with JavaScript disabled.
Reflects the height HTML attribute, specifying the height of the coordinate space in CSS pixels.
Reflects the width HTML attribute, specifying the width of the coordinate space in CSS pixels.
Returns a drawing context on the canvas, or null if the context ID is not supported. A drawing context lets you draw on the canvas. Calling getContext with "2d" returns a CanvasRenderingContext2D object, whereas calling it with "experimental-webgl" (or "webgl") returns a WebGLRenderingContext object. This context is only available on browsers that implement WebGL.
The context's id
A drawing context. A CanvasRenderingContext2D, IWebGLRenderingContext or IWebGL2RenderingContext object.
Returns CanvasRenderingContext2D drawing context on the canvas, or null if the context ID is not supported.
A drawing context lets you draw on the canvas.
The context's id
A CanvasRenderingContext2D drawing context object.
Returns WebGLRenderingContext drawing context on the canvas, or null if the context ID is not supported.
A drawing context lets you draw on the canvas. This context is only available on browsers that implement
WebGL (OpenGL ES 2.0).
The context's id
A WebGLRenderingContext drawing context object.
Returns a data: URL containing a representation of the image in the format specified by type (defaults to PNG). The returned image is 96dpi.
If the height or width of the canvas is 0, "data:," representing the empty string, is returned.
If the type requested is not image/png, and the returned value starts with data:image/png, then the requested type is not supported.
Chrome supports the image/webp type.
If the requested type is image/jpeg or image/webp, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the second argument is anything else, the default value for image quality is used. Other arguments are ignored.
URL containing a representation of the image
Returns a data: URL containing a representation of the image in the format specified by type (defaults to PNG). The returned image is 96dpi.
If the height or width of the canvas is 0, "data:," representing the empty string, is returned.
If the type requested is not image/png, and the returned value starts with data:image/png, then the requested type is not supported.
Chrome supports the image/webp type.
If the requested type is image/jpeg or image/webp, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the second argument is anything else, the default value for image quality is used. Other arguments are ignored.
The format. Defaults to PNG.
URL containing a representation of the image
Returns a data: URL containing a representation of the image in the format specified by type (defaults to PNG). The returned image is 96dpi.
If the height or width of the canvas is 0, "data:," representing the empty string, is returned.
If the type requested is not image/png, and the returned value starts with data:image/png, then the requested type is not supported.
Chrome supports the image/webp type.
If the requested type is image/jpeg or image/webp, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the second argument is anything else, the default value for image quality is used. Other arguments are ignored.
The format. Defaults to PNG.
/// Any additional parameters
URL containing a representation of the image
Implement this interface to use it with canvas.GetContext()
The HTMLVideoElement interface provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.
The HTML <video> element is used to embed video content. It may contain several video sources, represented using the src attribute or the <source> element; the browser will choose the most suitable one.
The list of supported media formats vary from one browser to the other.
Reflects the height HTML attribute, which specifies the height of the display area, in CSS pixels.
Reflects the poster HTML attribute, which specifies an image to show while no video data is available.
Returns an unsigned long containing the intrinsic height of the resource in CSS pixels, taking into account the dimensions, aspect ratio, clean aperture, resolution, and so forth, as defined for the format used by the resource. If the element's ready state is HAVE_NOTHING, the value is 0.
Returns an unsigned long containing the intrinsic width of the resource in CSS pixels, taking into account the dimensions, aspect ratio, clean aperture, resolution, and so forth, as defined for the format used by the resource. If the element's ready state is HAVE_NOTHING, the value is 0.
Reflects the width HTML attribute, which specifies the width of the display area, in CSS pixels.
The AnimationEvent interface represents events providing information related to animations.
Is a DOMString containing the value of the animation-name CSS property associated with the transition.
Is a float giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. For an "animationstart" event, elapsedTime is 0.0 unless there was a negative value for animation-delay, in which case the event will be fired with elapsedTime containing (-1 * delay).
Is a DOMString, starting with '::', containing the name of the pseudo-element the animation runs on. If the animation doesn't run on a pseudo-element but on the element, an empty string: ''.
A generic version of the AnimationEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
For compositionstart events, this is the currently selected text that will be replaced by the string being composed. This value doesn't change even if content changes the selection range; rather, it indicates the string that was selected when composition started.
For compositionupdate, this is the string as it stands currently as editing is ongoing.
For compositionend events, this is the string as committed to the editor.
The locale of current input method (for example, the keyboard layout locale if the composition is associated with IME).
A generic version of the CompositionEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
The DOM CustomEvent are events initialized by an application for any purpose.
The data passed when initializing the event.
The data passed when initializing the event.
A generic version of the CustomEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
The Event interface represents any event of the DOM. It contains common properties and methods to any event.
Indicates whether the given event bubbles up through the DOM or not.
Only certain events can bubble. Events that do bubble have this property set to true. You can use this property to check if an event is allowed to bubble or not.
Indicates whether the event is cancelable or not.
Whether an event can be canceled or not is something that's determined when that event is initialized.
To cancel an event, call the preventDefault() method on the event. This keeps the implementation from executing the default action that is associated with the event.
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
Returns a boolean indicating whether or not event.preventDefault() was called on the event.
Indicates which phase of the event flow is currently being evaluated.
Returns an integer value represented by 4 constants:
Event.NONE = 0
Event.CAPTURING_PHASE = 1
Event.AT_TARGET = 2
Event.BUBBLING_PHASE = 3
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
Returns the time (in milliseconds since the epoch) at which the event was created.
This property only works if the event system supports it for the particular event.
Returns a string containing the type of event.
Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method, like event.initEvent)
Cancels the event if it is cancelable, without stopping further propagation of the event.
Prevents other listeners of the same event to be called.
If several listeners are attached to the same element for the same event type, they are called in order in which they have been added. If during one such call, event.stopImmediatePropagation() is called, no remaining listeners will be called.
Prevents further propagation of the current event.
A generic version of the Event class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
Indicates whether the given event bubbles up through the DOM or not.
Only certain events can bubble. Events that do bubble have this property set to true. You can use this property to check if an event is allowed to bubble or not.
Indicates whether the event is cancelable or not.
Whether an event can be canceled or not is something that's determined when that event is initialized.
To cancel an event, call the preventDefault() method on the event. This keeps the implementation from executing the default action that is associated with the event.
These events are defined in official Web specifications, and should be common across browsers. Each event is listed along with the interface representing the object sent to recipients of the event (so you can find information about what data is provided with each event) as well as a link to the specification or specifications that define the event.
UIEvent - DOM L3
The loading of a resource has been aborted.
Event - HTML5
The associated document has started printing or the print preview has been closed.
AnimationEvent - CSS Animations
A CSS animation has completed.
AnimationEvent - CSS Animations
A CSS animation is repeated.
AnimationEvent - CSS Animations
A CSS animation has started.
Event - HTML5
The associated document is about to be printed or previewed for printing.
BeforeUnloadEvent - HTML5
The beforeunload event is fired when the window, the document and its resources are about to be unloaded.
IndexedDB
An open connection to a database is blocking a versionchange transaction on the same database.
FocusEvent - DOM L3
An element has lost focus (does not bubble).
Event - Offline
The resources listed in the manifest have been downloaded, and the application is now cached.
Event - HTML5
The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
Event - HTML5
The user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content.
Event - DOM L2, HTML5
An element loses focus and its value changed since gaining focus.
Event - Offline
The user agent is checking for an update, or attempting to download the cache manifest for the first time.
MouseEvent - DOM L3
A pointing device button has been pressed and released on an element.
Event - WebSocket
A WebSocket connection has been closed.
IndexedDB
The complete handler is executed when a transaction successfully completed.
CompositionEven - DOM L3
The composition of a passage of text has been completed or canceled.
CompositionEven - DOM L3
The composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition).
CompositionEven - DOM L3
A character is added to a passage of text being composed.
MouseEvent - HTML5
The right button of the mouse is clicked (before the context menu is displayed).
ClipboardEvent - Clipboard
The text selection has been added to the clipboard.
ClipboardEvent - Clipboard
The text selection has been removed from the document and added to the clipboard.
MouseEvent - DOM L3
A pointing device button is clicked twice on an element.
DeviceLightEvent - Ambient Light Events
Fresh data is available from a light sensor.
DeviceMotionEvent - Device Orientation Events
Fresh data is available from a motion sensor.
DeviceOrientationEvent - Device Orientation Events
Fresh data is available from an orientation sensor.
DeviceProximityEvent - Proximity Events
Fresh data is available from a proximity sensor (indicates an approximated distance between the device and a nearby object).
Event - Battery status
The dischargingTime attribute has been updated.
Event - HTML5
The document has finished loading (but not its dependent resources).
Event - Offline
The user agent has found an update and is fetching it, or is downloading the resources listed by the cache manifest for the first time.
DragEvent - HTML5
An element or text selection is being dragged (every 350ms).
DragEvent - HTML5
A drag operation is being ended (by releasing a mouse button or hitting the escape key).
DragEvent - HTML5
A dragged element or text selection enters a valid drop target.
DragEvent - HTML5
A dragged element or text selection leaves a valid drop target
DragEvent - HTML5
An element or text selection is being dragged over a valid drop target (every 350ms).
DragEvent - HTML5
The user starts dragging an element or text selection.
DragEvent - HTML5
An element is dropped on a valid drop target.
Event - HTML5 media
The duration attribute has been updated.
Event - HTML5 media
The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it.
Event - HTML5 media
Playback has stopped because the end of the media was reached.
TimeEvent - SVG
A SMIL animation element ends.
UIEvent - DOM L3
A resource failed to load.
ProgressEvent - Progress and XMLHttpRequest
Progression has failed.
Event - Offline
An error occurred while downloading the cache manifest or updating the content of the application.
Event - WebSocket
A WebSocket connection has been closed with prejudice (some data couldn't be sent for example).
Event - Server Sent Events
An event source connection has been failed.
Event - IndexedDB
A request caused an error and failed.
FocusEvent - DOM L3
An element has received focus (does not bubble).
FocusEvent - DOM L3
An element is about to receive focus (bubbles).
FocusEvent - DOM L3
An element is about to lose focus (bubbles).
Event - Full Screen
An element was turned to fullscreen mode or back to normal mode.
Event - Full Screen
It was impossible to switch to fullscreen mode for technical reasons or because the permission was denied.
GamepadEvent - Gamepad
A gamepad has been connected.
GamepadEvent - Gamepad
A gamepad has been disconnected.
HashChangeEvent - HTML5
The fragment identifier of the URL has changed (the part of the URL after the #).
Event - HTML5
The value of an element changes or the content of an element with the attribute contenteditable is modified.
Event - HTML5
A submittable element has been checked and doesn't satisfy its constraints.
KeyboardEvent - DOM L3
A key is pressed down.
KeyboardEvent - DOM L3
A key is pressed down and that key normally produces a character value (use input instead).
KeyboardEvent - DOM L3
A key is released.
Event - Battery status
The level attribute has been updated.
UIEvent - DOM L3
A resource and its dependent resources have finished loading.
ProgressEvent - Progress and XMLHttpRequest
Progression has been successful.
Event - HTML5 media
The first frame of the media has finished loading.
Event - HTML5 media
The metadata has been loaded.
ProgressEvent - Progress and XMLHttpRequest
Progress has stopped (after "error", "abort" or "load" have been dispatched).
ProgressEvent - Progress and XMLHttpRequest
Progress has begun.
MessageEvent - WebSocket
A message is received through a WebSocket.
MessageEvent - Web Workers
A message is received from a Web Worker.
MessageEvent - Web Messaging
A message is received from a child (i)frame or a parent window.
MessageEvent - Server Sent Events
A message is received through an event source.
MouseEvent - DOM L3
A pointing device button (usually a mouse) is pressed on an element.
MouseEvent - DOM L3
A pointing device is moved onto the element that has the listener attached.
MouseEvent - DOM L3
A pointing device is moved off the element that has the listener attached.
MouseEvent - DOM L3
A pointing device is moved over an element.
MouseEvent - DOM L3
A pointing device is moved off the element that has the listener attached or off one of its children.
MouseEvent - DOM L3
A pointing device is moved onto the element that has the listener attached or onto one of its children.
MouseEvent - DOM L3
A pointing device button is released over an element.
Event - Offline
The manifest hadn't changed.
Event - Offline
The manifest was found to have become a 404 or 410 page, so the application cache is being deleted.
Event - HTML5 offline
The browser has lost access to the network.
Event - HTML5 offline
The browser has gained access to the network (but particular websites might be unreachable).
Event - WebSocket
A WebSocket connection has been established.
Event - Server Sent Events
An event source connection has been established.
Event - Screen Orientation
The orientation of the device (portrait/landscape) has changed
PageTransitionEvent - HTML5
A session history entry is being traversed from.
PageTransitionEvent - HTML5
A session history entry is being traversed to.
ClipboardEvent - Clipboard
Data has been transfered from the system clipboard to the document.
Event - HTML5 media
Playback has been paused.
Event - Pointer Lock
The pointer was locked or released.
Event - Pointer Lock
It was impossible to lock the pointer for technical reasons or because the permission was denied.
Event - HTML5 media
Playback has begun.
Event - HTML5 media
Playback is ready to start after having been paused or delayed due to lack of data.
PopStateEvent - HTML5
A session history entry is being navigated to (in certain cases).
ProgressEvent - Progress and XMLHttpRequest
In progress.
ProgressEvent - Offline
The user agent is downloading resources listed by the manifest.
Event - HTML5 media
The playback rate has changed.
Event - HTML5 and XMLHttpRequest
The readyState attribute of a document has changed.
TimeEvent - SVG
A SMIL animation element is repeated.
Event - DOM L2, HTML5
A form is reset.
UIEvent - DOM L3
The document view has been resized.
UIEvent - DOM L3
The document view or an element has been scrolled.
Event - HTML5 media
A seek operation completed.
Event - HTML5 media
A seek operation began.
UIEvent - DOM L3
Some text is being selected.
MouseEvent - HTML5
A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute
Event - HTML5 media
The user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
StorageEvent - Web Storage
A storage area (localStorage or sessionStorage) has changed.
Event - DOM L2, HTML5
A form is submitted.
Event - IndexedDB
A request successfully completed.
Event - HTML5 media
Media data loading has been suspended.
SVGEvent - SVG
Page loading has been stopped before the SVG was loaded.
SVGEvent - SVG
An error has occurred before the SVG was loaded.
SVGEvent - SVG
An SVG document has been loaded and parsed.
SVGEvent - SVG
An SVG document is being resized.
SVGEvent - SVG
An SVG document is being scrolled.
SVGEvent - SVG
An SVG document has been removed from a window or frame.
SVGZoomEvent - SVG
An SVG document is being zoomed.
ProgressEvent - XMLHttpRequest
Event - HTML5 media
The time indicated by the currentTime attribute has been updated.
TouchEvent - Touch Events
A touch point has been disrupted in an implementation-specific manners (too many touch points for example).
TouchEvent - Touch Events
A touch point is removed from the touch surface.
TouchEvent - Touch Events
A touch point is moved onto the interactive area of an element.
TouchEvent - Touch Events
A touch point is moved off the interactive area of an element.
TouchEvent - Touch Events
A touch point is moved along the touch surface.
TouchEvent - Touch Events
A touch point is placed on the touch surface.
TransitionEvent - CSS Transitions
A CSS transition has completed.
UIEvent - DOM L3
The document or a dependent resource is being unloaded.
Event - Offline
The resources listed in the manifest have been newly redownloaded, and the script can use swapCache() to switch to the new cache.
- IndexedDB
An attempt was made to open a database with a version number higher than its current version. A versionchange transaction has been created.
SensorEvent - Sensor
Fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).
Event - IndexedDB
A versionchange transaction completed.
Event - Page visibility
The content of a tab has become visible or has been hidden.
Event - HTML5 media
The volume has changed.
Event - HTML5 media
Playback has stopped because of a temporary lack of data.
WheelEvent - DOM L3
A wheel button of a pointing device is rotated in any direction.
The FocusEvent interface represents focus-related events like focus, blur, focusin, or focusout.
The FocusEvent.relatedTarget read-only property represents a secondary target for this event, which will depend of the event itself. As in some cases (like when tabbing in or out a page), this property may be set to null for security reasons.
A generic version of the FocusEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
The new URL to which the window is navigating.
The previous URL from which the window was navigated.
A generic version of the HashChangeEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
This method is called whenever an event occurs of the type for which the EventListener interface was registered.
The DOM Event to register.
Indicates whether the ALT key was pressed when the event fired.
The Unicode reference number of the key; this attribute is used only by the 'keypress' event. For keys whose char attribute contains multiple characters, this is the Unicode value of the first character in that attribute. In Firefox 26 this returns codes for printable characters.
Indicates whether the CTRL key was pressed when the event fired.
true if the event is fired between after compositionstart and before compositionend.
Returns the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event.
In a keypress event, the Unicode value of the key pressed is stored in either the keyCode or charCode property, never both. If the key pressed generates a character (e.g. 'a'), charCode is set to the code of that character, respecting the letter case. (i.e. charCode takes into account whether the shift key is held down). Otherwise, the code of the pressed key is stored in keyCode.
keyCode is always set in the keydown and keyup events. In these cases, charCode is never set.
To get the code of the key regardless of whether it was stored in keyCode or charCode, query the which property.
Characters entered through an IME do not register through keyCode or charCode.
The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the char attribute. Otherwise, it's one of the key value strings specified in {{anch("Key values")}}. If the key can't be identified, this is the string "Unidentified". See key names for the detail. In Firefox 26 this has a valid string for non-printable characters, and some printable characters (e.g. Tab, Enter). For regular characters it returns only "MozPrintableKey". charCode works and returns the character code.
A locale string indicating the locale the keyboard is configured for. This may be the empty string if the browser or device doesn't know the keyboard's locale.
The location of the key on the keyboard or other input device
Indicates whether the "meta" key was pressed when the event fired.
Note: On the Macintosh, this is the Command key. On Microsoft Windows, this is the Windows key.
Indicates whether the SHIFT key was pressed when the event fired.
Returns the numeric keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed.
true if the key is being held down such that it is automatically repeating.
Returns the current state of the specified modifier key.
A string identifying the modifier key whose value you wish to determine. This may be an implementation-defined value or one of: "Alt", "AltGraph", "CapsLock", "Control", "Fn", "Meta", "NumLock", "ScrollLock", "Shift", "SymbolLock", or "OS". Note that IE9 uses "Scroll" for "ScrollLock" and "Win" for "OS". If you use these older draft's name, Gecko's getModifierState() always returns false.
true if the specified modifier key is engaged; otherwise false.
The initKeyEvent method is used to initialize the value of an event created using document.createEvent("KeyboardEvent")
The type of event.
A boolean indicating whether the event should bubble up through the event chain or not (see bubbles).
A boolean indicating whether the event can be canceled.
Specifies UIEvent.view. This value may be null.
bool True if the Virtual Key to be generated is a combination of the Ctrl key and other keys
bool True if the Virtual Key to be generated is a combination of the Alt key and other keys
bool True if the Virtual Key to be generated is a combination of the Shift key and other keys
bool True if the Virtual Key to be generated is a combination of the Meta key and other keys
unsigned long the virtual key code value of the key which was depressed, otherwise zero
unsigned long the Unicode character associated with the depressed key otherwise zero
Cancel key.
Help key.
Backspace key.
Tab key.
"5" key on Numpad when NumLock is unlocked. Or on Mac, clear key which is positioned at NumLock key.
Return/enter key on the main keyboard.
Reserved, but not used. Obsolete since Gecko 30 (Dropped, see bug 969247.)
Shift key.
Control key.
Alt (Option on Mac) key.
Pause key.
Caps lock.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
"英数" key on Japanese Mac keyboard.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Escape key.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Space bar.
Page Up key.
Page Down key.
End key.
Home key.
Left arrow.
Up arrow.
Right arrow.
Down arrow.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Linux support for this keycode was added in Gecko 4.0.
Print Screen key.
Ins(ert) key.
Del(ete) key.
"0" key in standard key location.
"1" key in standard key location.
"2" key in standard key location.
"3" key in standard key location.
"4" key in standard key location.
"5" key in standard key location.
"6" key in standard key location.
"7" key in standard key location.
"8" key in standard key location.
"9" key in standard key location.
Colon (":") key.
Semicolon (";") key.
Less-than ("<") key.
Equals ("=") key.
Greater-than (">") key.
Question mark ("?") key.
Atmark ("@") key.
"A" key.
"B" key.
"C" key.
"D" key.
"E" key.
"F" key.
"G" key.
"H" key.
"I" key.
"J" key.
"K" key.
"L" key.
"M" key.
"N" key.
"O" key.
"P" key.
"Q" key.
"R" key.
"S" key.
"T" key.
"U" key.
"V" key.
"W" key.
"X" key.
"Y" key.
"Z" key.
Windows logo key on Windows. Or Super or Hyper key on Linux.
Opening context menu key.
Linux support for this keycode was added in Gecko 4.0.
"0" on the numeric keypad.
"1" on the numeric keypad.
"2" on the numeric keypad.
"3" on the numeric keypad.
"4" on the numeric keypad.
"5" on the numeric keypad.
"6" on the numeric keypad.
"7" on the numeric keypad.
"8" on the numeric keypad.
"9" on the numeric keypad.
"*" on the numeric keypad.
"+" on the numeric keypad.
"-" on the numeric keypad.
Decimal point on the numeric keypad.
"/" on the numeric keypad.
F1 key.
F2 key.
F3 key.
F4 key.
F5 key.
F6 key.
F7 key.
F8 key.
F9 key.
F10 key.
F11 key.
F12 key.
F13 key.
F14 key.
F15 key.
F16 key.
F17 key.
F18 key.
F19 key.
F20 key.
F21 key.
F22 key.
F23 key.
F24 key.
Num Lock key.
Scroll Lock key.
An OEM specific key on Windows. This was used for "Dictionary" key on Fujitsu OASYS. Requires Gecko 21.0
An OEM specific key on Windows. This was used for "Unregister word" key on Fujitsu OASYS. Requires Gecko 21.0
An OEM specific key on Windows. This was used for "Register word" key on Fujitsu OASYS. Requires Gecko 21.0
An OEM specific key on Windows. This was used for "Left OYAYUBI" key on Fujitsu OASYS. Requires Gecko 21.0
An OEM specific key on Windows. This was used for "Right OYAYUBI" key on Fujitsu OASYS. Requires Gecko 21.0
Circumflex ("^") key.
Exclamation ("!") key.
Double quote (""") key.
Hash ("#") key.
Dollar sign ("$") key.
Percent ("%") key.
Ampersand ("&") key.
Underscore ("_") key.
Open parenthesis ("(") key.
Close parenthesis (")") key.
Asterisk ("*") key.
Plus ("+") key.
Pipe ("|") key.
Hyphen-US/docs/Minus ("-") key.
Open curly bracket ("{") key.
Close curly bracket ("}") key.
Tilde ("~") key.
Audio mute key. Requires Gecko 21.0
Audio volume down key Requires Gecko 21.0
Audio volume up key Requires Gecko 21.0
Comma (",") key.
Period (".") key.
Slash ("/") key.
Back tick ("`") key.
Open square bracket ("[") key.
Back slash ("\") key.
Close square bracket ("]") key.
Quote (''') key.
Meta key on Linux, Command key on Mac.
AltGr key (Level 3 Shift key or Level 5 Shift key) on Linux.
An OEM specific key on Windows. This is (was?) used for Olivetti ICO keyboard.Requires Gecko 21.0
An OEM specific key on Windows. This is (was?) used for Olivetti ICO keyboard.Requires Gecko 21.0
An OEM specific key on Windows. This is (was?) used for Olivetti ICO keyboard.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
An OEM specific key on Windows. This was used for Nokia/Ericsson's device.Requires Gecko 21.0
Attn (Attension) key of IBM midrange computers, e.g., AS/400. Requires Gecko 21.0
CrSel (Cursor Selection) key of IBM 3270 keyboard layout. Requires Gecko 21.0
ExSel (Extend Selection) key of IBM 3270 keyboard layout. Requires Gecko 21.0
Erase EOF key of IBM 3270 keyboard layout. Requires Gecko 21.0
Play key of IBM 3270 keyboard layout. Requires Gecko 21.0
Zoom key. Requires Gecko 21.0
PA1 key of IBM 3270 keyboard layout. Requires Gecko 21.0
Clear key, but we're not sure the meaning difference from DOM_VK_CLEAR. Requires Gecko 21.0
Optional and defaulting to "", of type DOMString, that sets the value of KeyboardEvent.Key.
Optional and defaulting to "", of type DOMString, that sets the value of KeyboardEvent.Code.
The location of the key on the keyboard or other input device.
Optional and defaulting to Standard (0), of type unsigned long, that sets the value of KeyboardEvent.Location.
Optional and defaulting to false, of type Boolean, that sets the value of KeyboardEvent.Repeat.
Optional and defaulting to false, of type Boolean, that sets the value of KeyboardEvent.IsComposing.
Optional and defaulting to 0, of type unsigned long, that sets the value of the deprecated KeyboardEvent.Which.
Indicates whether the ALT key was pressed when the event fired.
Indicates whether the CTRL key was pressed when the event fired.
Indicates whether the "meta" key was pressed when the event fired.
Note: On the Macintosh, this is the Command key. On Microsoft Windows, this is the Windows key.
Indicates whether the SHIFT key was pressed when the event fired.
Returns the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event.
In a keypress event, the Unicode value of the key pressed is stored in either the keyCode or charCode property, never both. If the key pressed generates a character (e.g. 'a'), charCode is set to the code of that character, respecting the letter case. (i.e. charCode takes into account whether the shift key is held down). Otherwise, the code of the pressed key is stored in keyCode.
keyCode is always set in the keydown and keyup events. In these cases, charCode is never set.
To get the code of the key regardless of whether it was stored in keyCode or charCode, query the which property.
Characters entered through an IME do not register through keyCode or charCode.
The Unicode reference number of the key; this attribute is used only by the 'keypress' event. For keys whose char attribute contains multiple characters, this is the Unicode value of the first character in that attribute. In Firefox 26 this returns codes for printable characters.
These constants describe the location on the keyboard of key events.
The key must not be distinguished between the left and right versions of the key, and was not pressed on the numeric keypad or a key that is considered to be part of the keypad.
The key was the left-hand version of the key; for example, this is the value of the location attribute when the left-hand Control key is pressed on a standard 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard.
The key was the right-hand version of the key; for example, this is the value of the location attribute when the right-hand Control key is pressed on a standard 101 key US keyboard. This value is only used for keys that have more that one possible location on the keyboard.
The key was on the numeric keypad, or has a virtual key code that corresponds to the numeric keypad.
The key was on a mobile device; this can be on either a physical keypad or a virtual keyboard.
The key was a button on a game controller or a joystick on a mobile device.
A generic version of the KeyboardEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
Indicates whether the ALT key was pressed when the event fired.
Indicates which mouse button caused the event.
This property returns an integer value indicating the button that changed state.
0 for standard "click"; this is usually the left button for a right-handed mouse and right button for a left-handed mouse.
1 for middle button; this is usually a click on the scroll wheel's button.
2 for right button; this is usually a right-click on a right-handed mouse and left-click on a left-handed mouse.
Note: This convention is not followed in Internet Explorer prior to version 9: See QuirksMode for details (http://www.quirksmode.org/js/events_properties.html#button).
Notes
Because mouse clicks are frequently intercepted by the user interface, it may be difficult to detect buttons other than those for a standard mouse click (usually the left button) in some circumstances.
Users may change the configuration of buttons on their pointing device so that if an event's button property is zero, it may not have been caused by the button that is physically left–most on the pointing device; however, it should behave as if the left button was clicked in the standard button layout.
The buttons being pressed when the mouse event was fired
Each button that can be pressed is representd by a given number (see below). If more than one button is pressed, the value of the buttons is combined to produce a new number. For example, if the right button (2) and the wheel button (4) are pressed, the value is equal to 2|4, which is 6.
A number representing one or more buttons. For more than one button pressed, the values are combined.
1 : Left button
2 : Right button
4 : Wheel button
8 : 4th button (typically the "Browser Back" button)
16 : 5th button (typically the "Browser Forward" button)
Returns the horizontal coordinate within the application's client area at which the event occurred (as opposed to the coordinates within the page). For example, clicking in the top-left corner of the client area will always result in a mouse event with a clientX value of 0, regardless of whether the page is scrolled horizontally.
Returns the vertical coordinate within the application's client area at which the event occurred (as opposed to the coordinates within the page). For example, clicking in the top-left corner of the client area will always result in a mouse event with a clientY value of 0, regardless of whether the page is scrolled vertically.
Indicates whether the CTRL key was pressed when the event fired.
Returns additional numerical information about the event, depending on the type of event.
For mouse events, such as click, dblclick, mousedown, or mouseup, the detail property indicates how many times the mouse has been clicked in the same location for this event.
For a dblclick event the value of detail is always 2.
Indicates whether the "meta" key was pressed when the event fired.
Note: On the Macintosh, this is the Command key. On Microsoft Windows, this is the Windows key.
Returns the horizontal coordinate of the event within the screen as a whole.
Returns the vertical coordinate of the event within the screen as a whole.
Indicates whether the SHIFT key was pressed when the event fired.
The secondary target for the event, if there is one.
The X coordinate of the mouse pointer relative to the position of the last mousemove event.
The Y coordinate of the mouse pointer relative to the position of the last mousemove event.
Returns the current state of the specified modifier key.
A string identifying the modifier key whose value you wish to determine. This may be an implementation-defined value or one of: "Alt", "AltGraph", "CapsLock", "Control", "Fn", "Meta", "NumLock", "ScrollLock", "Shift", "SymbolLock", or "OS". Note that IE9 uses "Scroll" for "ScrollLock" and "Win" for "OS". If you use these older draft's name, Gecko's getModifierState() always returns false.
true if the specified modifier key is engaged; otherwise false.
Intializes the value of a mouse event once it's been created (normally using document.createEvent method).
the string to set the event's type to. Possible types for mouse events include: click, mousedown, mouseup, mouseover, mousemove, mouseout.
whether or not the event can bubble.
whether or not the event's default action can be prevented.
the Event's AbstractView. You should pass the window object here.
the Event's mouse click count.
the Event's screen x coordinate.
the Event's screen y coordinate.
the Event's client x coordinate.
the Event's client y coordinate.
whether or not control key was depressed during the Event.
whether or not alt key was depressed during the Event.
whether or not shift key was depressed during the Event.
whether or not meta key was depressed during the Event.
the Event's mouse event.button.
the Event's related EventTarget. Only used with some event types (e.g. mouseover and mouseout). In other cases, pass null.
Indicates which mouse button caused the event.
The buttons being pressed when the mouse event was fired
Returns the horizontal coordinate within the application's client area at which the event occurred (as opposed to the coordinates within the page). For example, clicking in the top-left corner of the client area will always result in a mouse event with a clientX value of 0, regardless of whether the page is scrolled horizontally.
Returns the vertical coordinate within the application's client area at which the event occurred (as opposed to the coordinates within the page). For example, clicking in the top-left corner of the client area will always result in a mouse event with a clientY value of 0, regardless of whether the page is scrolled vertically.
Returns additional numerical information about the event, depending on the type of event.
The secondary target for the event, if there is one.
Returns the horizontal coordinate of the event within the screen as a whole.
Returns the vertical coordinate of the event within the screen as a whole.
A generic version of the MouseEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
The ProgressEvent interface represents events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
Is a Boolean flag indicating if the total work to be done, and the amount of work already done, by the underlying process is calculable. In other words, it tells if the progress is measurable or not.
Is an unsigned long long representing the amount of work already performed by the underlying process. The ratio of work done can be calculated with the property and ProgressEvent.total. When downloading a resource using HTTP, this only represent the part of the content itself, not headers and other overhead.
Is an unsigned long long representing the total amount of work that the underlying process is in the progress of performing. When downloading a resource using HTTP, this only represent the content itself, not headers and other overhead.
A generic version of the ProgressEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
Returns additional numerical information about the event, depending on the type of event.
For mouse events, such as click, dblclick, mousedown, or mouseup, the detail property indicates how many times the mouse has been clicked in the same location for this event.
For a dblclick event the value of detail is always 2.
Indicates which phase of the event flow is currently being evaluated.
Returns an integer value represented by 4 constants:
Event.NONE = 0
Event.CAPTURING_PHASE = 1
Event.AT_TARGET = 2
Event.BUBBLING_PHASE = 3
Returns the horizontal coordinate of the event relative to the current layer.
LayerX takes scrolling of the page into account, and returns a value relative to the whole of the document, unless the event occurs inside a positioned element, where the returned value is relative to the top left of the positioned element.
Returns the vertical coordinate of the event relative to the current layer.
LayerY takes scrolling of the page into account, and returns a value relative to the whole of the document, unless the event occurs inside a positioned element, where the returned value is relative to the top left of the positioned element.
Returns the horizontal coordinate of the event relative to whole document.
Returns the vertical coordinate of the event relative to the whole document.
A view which generated the event.
Detail about the event, depending on the type of event
A view which generated the event.
A generic version of the UIEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
The DOM WheelEvent represents events that occur due to the user moving a mouse wheel or similar input device.
Horizontal scroll amount. Read only.
Vertical scroll amount. Read only.
Scroll amount for the z-axis. Read only.
Unit of delta values.
Unit of delta values.
The delta values are specified in pixels.
The delta values are specified in lines.
The delta values are specified in pages.
A generic version of the WheelEvent class. The type parameter is a type of CurrentTarget.
The CurrentTarget type
Identifies the current target for the event, as the event traverses the DOM. It always refers to the element the event handler has been attached to as opposed to event.target which identifies the element on which the event occurred.
On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, there is no equivalent to event.currentTarget and this is the global object.
This property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the event.
On IE6-8, the event model is different. Event listeners are attached with the non-standard element.attachEvent method. In this model, the event object is not passed as an argument to the event handler function but is the window.event object. This object has an srcElement property which has the same semantics than event.target.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
Dispatches the specified event to the current element.
To create an event object use the createEvent method in Firefox, Opera, Google Chrome, Safari and Internet Explorer from version 9. After the new event is created, initialize it first (for details, see the page for the createEvent method). When the event is initialized, it is ready for dispatching.
Required. Reference to an event object to be dispatched.
Boolean that indicates whether the default action of the event was not canceled.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
A Blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
An easy way to construct a Blob is by invoking the Blob constuctor. Another way is to use the slice() method to create a blob that contains a subset of another blob's data.
An Array of data objects to put into the new Blob object. This can be any number of ArrayBuffer, ArrayBufferView (typed array), Blob, or strings, in any order.
An Array of data objects to put into the new Blob object. This can be any number of ArrayBuffer, ArrayBufferView (typed array), Blob, or strings, in any order.
A BlobPropertyBag object that provides the properties for the new Blob object.
The size, in bytes, of the data contained in the Blob object.
A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty.
Returns a new Blob object containing the data in the specified range of bytes of the source Blob.
A new Blob object containing the specified data from the source Blob.
Returns a new Blob object containing the data in the specified range of bytes of the source Blob.
An index into the Blob indicating the first byte to copy into the new Blob. If you specify a negative value, it's treated as an offset from the end of the string toward the beginning. For example, -10 would be the 10th from last byte in the Blob. The default value is 0. If you specify a value for start that is larger than the size of the source Blob, the returned Blob has size 0 and contains no data.
A new Blob object containing the specified data from the source Blob.
Returns a new Blob object containing the data in the specified range of bytes of the source Blob.
An index into the Blob indicating the first byte to copy into the new Blob. If you specify a negative value, it's treated as an offset from the end of the string toward the beginning. For example, -10 would be the 10th from last byte in the Blob. The default value is 0. If you specify a value for start that is larger than the size of the source Blob, the returned Blob has size 0 and contains no data.
An index into the Blob indicating the last byte to copy into the new Blob. If you specify a negative value, it's treated as an offset from the end of the string toward the beginning. For example, -10 would be the 10th from last byte in the Blob. The default value is size.
A new Blob object containing the specified data from the source Blob.
Returns a new Blob object containing the data in the specified range of bytes of the source Blob.
An index into the Blob indicating the first byte to copy into the new Blob. If you specify a negative value, it's treated as an offset from the end of the string toward the beginning. For example, -10 would be the 10th from last byte in the Blob. The default value is 0. If you specify a value for start that is larger than the size of the source Blob, the returned Blob has size 0 and contains no data.
An index into the Blob indicating the last byte to copy into the new Blob. If you specify a negative value, it's treated as an offset from the end of the string toward the beginning. For example, -10 would be the 10th from last byte in the Blob. The default value is size.
The content type to assign to the new Blob; this will be the value of its type property. The default value is an empty string.
A new Blob object containing the specified data from the source Blob.
A BlobPropertyBag object that provides the properties for the new Blob object.
A string representing the MIME type of the Blob object.
Specifies how strings containing \n are to be written out. This can be "transparent" (endings unchanged) or "native" (endings changed to match host OS filesystem convention). The default value is "transparent". It corresponds to the endings parameter of the deprecated BlobBuilder.append().
Specifies how strings containing \n are to be written out.
Endings unchanged
Endings changed to match host OS filesystem convention
The File interface provides information about -- and access to the contents of -- files.
These are generally retrieved from a FileList object returned as a result of a user selecting files using the <input> element, from a drag and drop operation's DataTransfer object, or from the mozGetAsFile() API on an HTMLCanvasElement.
The file reference can be saved when the form is submitted while the user is offline, so that the data can be retrieved and uploaded when the Internet connection is restored.
The name of the file referenced by the File object.
The last modified Date of the file referenced by the File object.
An object of this type is returned by the files property of the HTML input element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
Returns a File object representing the file at the specified index in the file list.
The zero-based index of the file to retrieve from the list.
The File representing the requested file.
Returns a File object representing the file at the specified index in the file list.
The zero-based index of the file to retrieve from the list.
The File representing the requested file.
A read-only value indicating the number of files in the list.
The HTMLFormControlsCollection interface represents a collection of HTML form control elements. It provides one additional method besides the properties and methods inherited from HTMLCollection.
This interface is used by the HTMLFormElement interface's elements property, and the HTMLFieldSetElement interface's elements property.
Gets the node or list of nodes in the collection whose name or id match the specified name, or null if no nodes match.
Gets the node or list of nodes in the collection whose name or id match the specified name, or null if no nodes match.
The Geolocation interface represents an object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app offer customized results based on the user's location.
An object with this interface is obtained using the NavigatorGeolocation.geolocation property implemented by the Navigator object.
Note: For security reasons, when a web page tries to access location information, the user is notified and asked to grant permission. Be aware that each browser has its own policies and methods for requesting this permission.
Determines the device's current location and gives back a Position object with the data.
A callback function that takes a Position object as its sole input parameter.
Determines the device's current location and gives back a Position object with the data.
A callback function that takes a Position object as its sole input parameter.
Determines the device's current location and gives back a Position object with the data.
A callback function that takes a Position object as its sole input parameter.
An optional callback function that takes a PositionError object as its sole input parameter.
Determines the device's current location and gives back a Position object with the data.
A callback function that takes a Position object as its sole input parameter.
An optional callback function that takes a PositionError object as its sole input parameter.
Determines the device's current location and gives back a Position object with the data.
A callback function that takes a Position object as its sole input parameter.
An optional callback function that takes a PositionError object as its sole input parameter.
An optional PositionOptions object.
Determines the device's current location and gives back a Position object with the data.
A callback function that takes a Position object as its sole input parameter.
An optional callback function that takes a PositionError object as its sole input parameter.
An optional PositionOptions object.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
A callback function that takes a Position object as an input parameter.
This method returns a watch ID value than can be used to unregister the handler by passing it to the Geolocation.clearWatch() method.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
A callback function that takes a Position object as an input parameter.
This method returns a watch ID value than can be used to unregister the handler by passing it to the Geolocation.clearWatch() method.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
A callback function that takes a Position object as an input parameter.
An optional callback function that takes a PositionError object as an input parameter.
This method returns a watch ID value than can be used to unregister the handler by passing it to the Geolocation.clearWatch() method.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
A callback function that takes a Position object as an input parameter.
An optional callback function that takes a PositionError object as an input parameter.
This method returns a watch ID value than can be used to unregister the handler by passing it to the Geolocation.clearWatch() method.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
A callback function that takes a Position object as an input parameter.
An optional callback function that takes a PositionError object as an input parameter.
An optional PositionOptions object.
This method returns a watch ID value than can be used to unregister the handler by passing it to the Geolocation.clearWatch() method.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
A callback function that takes a Position object as an input parameter.
An optional callback function that takes a PositionError object as an input parameter.
An optional PositionOptions object.
This method returns a watch ID value than can be used to unregister the handler by passing it to the Geolocation.clearWatch() method.
Removes the particular handler previously installed using watchPosition().
The ID number returned by the Geolocation.watchPosition() method when installing the handler you wish to remove.
The Coordinates interface represents the position and attitude of the device on Earth, as well as the accuracy with which these data are computed.
Returns a double representing the latitude of the position in decimal degrees.
Returns a double representing the longitude of the position in decimal degrees.
Returns a double representing the altitude of the position in meters, relative to sea level. This value can be null.
Returns a double representing the accuracy of the latitude and longitude properties expressed in meters.
Returns a double representing the accuracy of the altitude expressed in meters. This value can be null.
Returns a double representing the direction in which the device is traveling. This value, specified in degrees, indicates how far off from heading due north the device is. 0 degrees represents true true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). If speed is 0, heading is NaN. If the device is not able to provide heading information, this value is null.
Returns a double representing the velocity of the device in meters per second. This value can be null.
The Position interface represents the position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed.
Returns a GeolocationCoordinates object defining the current location.
Returns a DOMTimeStamp representing the time at which the location was retrieved.
The PositionError interface represents the reason of an error occuring when using the geolocating device.
Returns an unsigned short representing the error code.
Returns a human-readable DOMString describing the details of the error.
The acquisition of the geolocation information failed because the page didn't have the permission to do it.
The acquisition of the geolocation failed because one or several internal source of position returned an internal error.
The time allowed to acquire the geolocation, defined by PositionOptions.timeout information was reached before the information was obtained.
The PositionOptions interface describes the options to use when calling the geolocation backend. The user agent itself doesn't create such an object itself: it is the calling script that create it and use it as a parameter of Geolocation.getCurrentPosition() and Geolocation.watchPosition().
Boolean property that indicates the application would like to receive the best possible results. If true and if the device is able to provide a more accurate position, it will do so. Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile device for example). On the other hand, if false (the default value), the device can take the liberty to save resources by responding more quickly and/or using less power.
Positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position. The default value is Infinity, meaning that getCurrentPosition() won't return until the position is available.
Positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return. If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position. If set to Infinity the device must return a cached position regardless of its age.
Returns an Integer representing the number of elements in the session history, including the currently loaded page. For example, for a page loaded in a new tab this property returns 1.
Returns an any value representing the state at the top of the history stack. This is a way to look at the state without having to wait for a popstate event.
Goes to the previous page in session history, the same action as when the user clicks the browser's Back button. Equivalent to history.go(-1).
Note: Calling this method to go back beyond the first page in the session history has no effect and doesn't raise an exception.
Goes to the next page in session history, the same action as when the user clicks the browser's Forward button; this is equivalent to history.go(1).
Note: Calling this method to go back beyond the last page in the session history has no effect and doesn't raise an exception.
Loads a page from the session history, identified by its relative location to the current page, for example -1 for the previous page or 1 for the next page. When integerDelta is out of bounds (e.g. -1 when there are no previously visited pages in the session history), the method doesn't do anything and doesn't raise an exception. Calling go() without parameters or with a non-integer argument has no effect (unlike Internet Explorer, which supports string URLs as the argument).
Pushes the given data onto the session history stack with the specified title and, if provided, URL. The data is treated as opaque by the DOM; you may specify any JavaScript object that can be serialized.
The state object is a JavaScript object which is associated with the new history entry created by pushState(). Whenever the user navigates to the new state, a popstate event is fired, and the state property of the event contains a copy of the history entry's state object.
Firefox currently ignores this parameter, although it may use it in the future. Passing the empty string here should be safe against future changes to the method. Alternatively, you could pass a short title for the state to which you're moving.
Pushes the given data onto the session history stack with the specified title and, if provided, URL. The data is treated as opaque by the DOM; you may specify any JavaScript object that can be serialized.
The state object is a JavaScript object which is associated with the new history entry created by pushState(). Whenever the user navigates to the new state, a popstate event is fired, and the state property of the event contains a copy of the history entry's state object.
Firefox currently ignores this parameter, although it may use it in the future. Passing the empty string here should be safe against future changes to the method. Alternatively, you could pass a short title for the state to which you're moving.
The new history entry's URL is given by this parameter. Note that the browser won't attempt to load this URL after a call to pushState(), but it might attempt to load the URL later, for instance after the user restarts the browser. The new URL does not need to be absolute; if it's relative, it's resolved relative to the current URL. The new URL must be of the same origin as the current URL; otherwise, pushState() will throw an exception. This parameter is optional; if it isn't specified, it's set to the document's current URL.
Updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL. The data is treated as opaque by the DOM; you may specify any JavaScript object that can be serialized.
The state object is a JavaScript object which is associated with the new history entry created by pushState(). Whenever the user navigates to the new state, a popstate event is fired, and the state property of the event contains a copy of the history entry's state object.
Firefox currently ignores this parameter, although it may use it in the future. Passing the empty string here should be safe against future changes to the method. Alternatively, you could pass a short title for the state to which you're moving.
Updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL. The data is treated as opaque by the DOM; you may specify any JavaScript object that can be serialized.
The state object is a JavaScript object which is associated with the new history entry created by pushState(). Whenever the user navigates to the new state, a popstate event is fired, and the state property of the event contains a copy of the history entry's state object.
Firefox currently ignores this parameter, although it may use it in the future. Passing the empty string here should be safe against future changes to the method. Alternatively, you could pass a short title for the state to which you're moving.
The new history entry's URL is given by this parameter. Note that the browser won't attempt to load this URL after a call to pushState(), but it might attempt to load the URL later, for instance after the user restarts the browser. The new URL does not need to be absolute; if it's relative, it's resolved relative to the current URL. The new URL must be of the same origin as the current URL; otherwise, pushState() will throw an exception. This parameter is optional; if it isn't specified, it's set to the document's current URL.
Returns an unsigned short that will be used to tell if a given Node must be accepted or not by the NodeIterator or TreeWalker iteration algorithm. This method is expected to be written by the user of a NodeFilter.
Node being the object to check against the filter.
Value returned by the NodeFilter.acceptNode() method when a node should be accepted.
Value to be returned by the NodeFilter.acceptNode() method when a node should be rejected. The children of rejected nodes are not visited by the NodeIterator or TreeWalker object; this value is treated as "skip this node and all its children".
Value to be returned by NodeFilter.acceptNode() for nodes to be skipped by the NodeIterator or TreeWalker object. The children of skipped nodes are still considered. This is treated as "skip this node but not its children".
String containing the whole URL.
String containing the protocol scheme of the URL, including the final ':'.
String containing the host, that is the hostname, a ':', and the port of the URL.
String containing the domain of the URL.
String containing the port number of the URL.
String containing an initial '/' followed by the path of the URL.
String containing a '?' followed by the parameters of the URL.
String containing a '#' followed by the fragment identifier of the URL.
String containing the username specified before the domain name.
String containing the password specified before the domain name.
String containing the canonical form of the origin of the specific location.
The Location.assign()method causes the window to load and display the document at the URL specified.
If the assignment can't happen because of a security violation, a DOMException of the SECURITY_ERROR type is thrown. This happens if the origin of the script calling the method is different from the origin of the page originally described by the Location object, mostly when the script is hosted on a different domain.
If the provided URL is not valid, a DOMException of the SYNTAX_ERROR type is thrown.
String containing the URL of the page to navigate to.
The Location.reload()method Reloads the resource from the current URL. Its optional unique parameter is a Boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache.
If the assignment can't happen because of a security violation, a DOMException of the SECURITY_ERROR type is thrown. This happens if the origin of the script calling the method is different from the origin of the page originally described by the Location object, mostly when the script is hosted on a different domain.
The Location.reload()method Reloads the resource from the current URL. Its optional unique parameter is a Boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache.
If the assignment can't happen because of a security violation, a DOMException of the SECURITY_ERROR type is thrown. This happens if the origin of the script calling the method is different from the origin of the page originally described by the Location object, mostly when the script is hosted on a different domain.
Boolean flag, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache.
The Location.replace()method replaces the current resource with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.
String containing the URL of the page to navigate to.
MediaList representing the intended destination medium for style information.
A MediaQueryList object maintains a list of media queries on a document, and handles sending notifications to listeners when the media queries on the document change.
This makes it possible to observe a document to detect when its media queries change, instead of polling the values periodically, if you need to programmatically detect changes to the values of media queries on a document.
Adds a new listener to the media query list. If the specified listener is already in the list, this method has no effect.
The MediaQueryListListener to invoke when the media query's evaluated result changes.
Adds a new listener to the media query list. If the specified listener is already in the list, this method has no effect.
The MediaQueryListListener to invoke when the media query's evaluated result changes.
Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list.
The MediaQueryListListener to stop calling on changes to the media query's evaluated result.
Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list.
The MediaQueryListListener to stop calling on changes to the media query's evaluated result.
true if the document currently matches the media query list; otherwise false. Read only.
The serialized media query list.
The Navigator interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
A Navigator object can be retrieved using the read-only Window.navigator property.
Returns a DOMString with the official name of the browser. Do not rely on this property to return the correct value.
Returns the version of the browser as a DOMString. Do not rely on this property to return the correct value.
Returns a Geolocation object allowing accessing the location of the device.
Returns a DOMString representing the language version of the browser.
Returns a Boolean indicating whether the browser is working online.
Returns a string that represents the current operating system.
Returns a string representing the platform of the browser.
Returns the product name of the current browser (e.g., "Gecko").
Returns the user agent string for the current browser.
Returns an array: the first value is null, and the others are all Gamepad objects, one for each gamepad connected to the device. So if no gamepads are connected, the method will just return null.
types of Node that must to be presented
Shows all nodes.
Shows attribute Attr nodes. This is meaningful only when creating a NodeIterator with an Attr node as its root; in this case, it means that the attribute node will appear in the first position of the iteration or traversal. Since attributes are never children of other nodes, they do not appear when traversing over the document tree.
Shows CDATASection nodes.
Shows Comment nodes.
Shows Document nodes.
Shows DocumentFragment nodes.
Shows DocumentType nodes.
Shows Element nodes.
Shows Entity nodes. This is meaningful only when creating a NodeIterator with an Entity node as its root; in this case, it means that the Entity node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree.
Shows EntityReference nodes.
Shows Notation nodes. This is meaningful only when creating a NodeIterator with a Notation node as its root; in this case, it means that the Notation node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree.
Shows ProcessingInstruction nodes.
Shows Text nodes.
The NodeIterator interface represents an iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.
A NodeIterator can be created using the Document.createNodeIterator() method
Returns a Node representing the root node as specified when the NodeIterator was created.
Returns an unsigned long being a bitmask made of constants describing the types of Node that must to be presented. Non-matching nodes are skipped, but their children may be included, if relevant.
Returns the Node to which the iterator is anchored.
Returns a Boolean flag that indicates whether the NodeFilter is anchored before, the flag being true, or after, the flag being false, the anchor node.
This operation is a no-op. It doesn't do anything. Previously it was telling the engine that the NodeIterator was no more used, but this is now useless.
Returns the previous Node in the document, or null if there are none.
Returns the next Node in the document, or null if there are none.
This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.
Indicates whether the attribute is an "ID attribute". An "ID attribute" being an attribute which value is expected to be unique across a DOM Document. In HTML DOM, "id" is the only ID attribute, but XML documents could define others. Whether or not an attribute is unique is often determined by a DTD or other schema description.
The attribute's name.
The attribute's value.
A CDATA Section can be used within XML to include extended portions of unescaped text, such that the symbols < and & do not need escaping as they normally do within XML when used as text.
The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.
Is a DOMString representing the textual data contained in this object.
Returns an unsigned long representing the size of the string contained in CharacterData.data.
Returns the Element immediately prior to this ChildNode in its parent's children list, or null if there is no Element in the list prior to this ChildNode.
Returns the Element immediately following this ChildNode in its parent's children list, or null if there is no Element in the list following this ChildNode.
Appends the given DOMString to the CharacterData.data string; when this method returns, data contains the concatenated DOMString.
Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data contains the shortened DOMString.
Inserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified DOMString.
Removes the object from its parent children list.
Replaces the specified amount of characters, starting at the specified offset, with the specified DOMString; when this method returns, data contains the modified DOMString.
Returns a DOMString containing the part of CharacterData.data of the specified length and starting at the specified offset.
The Comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. Comments are represented in HTML and XML as content between ''. In XML, the character sequence '--' cannot be used within a comment.
Indicate whether or not the element is editable.
The empty string, indicates that the element is editable.
Indicates that the element cannot be edited.
Indicates that the element inherits its parent's editable status.
Relationship of nodes
The HTMLElement interface represents any HTML element. Some elements directly implement this interface, others implement it via an interface that inherits it.
The access key assigned to the element.
A string that represents the element's assigned access key.
Gets/sets whether or not the element is editable.
Indicates whether or not the content of the element can be edited.
Allows access to read and write custom data attributes (data-*) of the element.
The HTMLElement.dir attribute gets or sets the text writing directionality of the content of the current element.
Gets/sets the language of an element's attributes, text, and element contents.
The height of an element, relative to the layout.
The distance from this element's left border to its offsetParent's left border.
The element from which all offset calculations are currently computed.
The distance from this element's top border to its offsetParent's top border.
The width of an element, relative to the layout.
An object representing the declarations of an element's style attributes.
Gets/sets the position of the element in the tabbing order.
A string that appears in a popup box when mouse is over the element.
The oncopy property returns the onCopy event handler code on the current element.
Returns the event handling code for the cut event.
Returns the event handling code for the paste event.
Removes keyboard focus from the currently focused element.
Sends a mouse click event to the element.
Makes the element the current keyboard focus.
EventHandler representing the code to be called when the abort event is raised.
EventHandler representing the code to be called when the blur event is raised.
OnErrorEventHandler representing the code to be called when the error event is raised.
EventHandler representing the code to be called when the focus event is raised.
EventHandler representing the code to be called when the cancel event is raised.
EventHandler representing the code to be called when the canplay event is raised
EventHandler representing the code to be called when the canplaythrough event is raised.
EventHandler representing the code to be called when the change event is raised.
EventHandler representing the code to be called when the click event is raised.
EventHandler representing the code to be called when the close event is raised.
EventHandler representing the code to be called when the contextmenu event is raised.
EventHandler representing the code to be called when the cuechange event is raised.
EventHandler representing the code to be called when the dblclick event is raised.
EventHandler representing the code to be called when the drag event is raised.
Is an EventHandler representing the code to be called when the dragend event is raised
Is an EventHandler representing the code to be called when the dragenter event is raised
Is an EventHandler representing the code to be called when the dragexit event is raised
Is an EventHandler representing the code to be called when the dragleave event is raised
Is an EventHandler representing the code to be called when the dragover event is raised
Is an EventHandler representing the code to be called when the dragstart event is raised
Is an EventHandler representing the code to be called when the drop event is raised
Is an EventHandler representing the code to be called when the durationchange event is raised
Is an EventHandler representing the code to be called when the emptied event is raised
Is an EventHandler representing the code to be called when the ended event is raised
Is an EventHandler representing the code to be called when the input event is raised
Is an EventHandler representing the code to be called when the invalid event is raised
Is an EventHandler representing the code to be called when the keydown event is raised
Is an EventHandler representing the code to be called when the keypress event is raised
Is an EventHandler representing the code to be called when the keyup event is raised
Is an EventHandler representing the code to be called when the load event is raised
Is an EventHandler representing the code to be called when the loadeddata event is raised
Is an EventHandler representing the code to be called when the loadedmetadata event is raised
Is an EventHandler representing the code to be called when the loadstart event is raised
Is an EventHandler representing the code to be called when the mousedown event is raised
Is an EventHandler representing the code to be called when the mouseenter event is raised
Is an EventHandler representing the code to be called when the mouseleave event is raised
Is an EventHandler representing the code to be called when the mousemove event is raised
Is an EventHandler representing the code to be called when the mouseout event is raised
Is an EventHandler representing the code to be called when the mouseover event is raised
Is an EventHandler representing the code to be called when the mouseup event is raised
Is an EventHandler representing the code to be called when the mousewheel event is raised
Is an EventHandler representing the code to be called when the pause event is raised
Is an EventHandler representing the code to be called when the play event is raised
Is an EventHandler representing the code to be called when the playing event is raised
Is an EventHandler representing the code to be called when the progress event is raised
Is an EventHandler representing the code to be called when the ratechange event is raised
Is an EventHandler representing the code to be called when the reset event is raised
Is an EventHandler representing the code to be called when the scroll event is raised
Is an EventHandler representing the code to be called when the seeked event is raised
Is an EventHandler representing the code to be called when the seeking event is raised
Is an EventHandler representing the code to be called when the select event is raised
Is an EventHandler representing the code to be called when the show event is raised
Is an EventHandler representing the code to be called when the sort event is raised
Is an EventHandler representing the code to be called when the stalled event is raised
Is an EventHandler representing the code to be called when the submit event is raised
Is an EventHandler representing the code to be called when the suspend event is raised
Is an EventHandler representing the code to be called when the timeupdate event is raised
Is an EventHandler representing the code to be called when the volumechange event is raised
Is an EventHandler representing the code to be called when the waiting event is raised
Returns the event handling code for the touchstart event.
Returns the event handling code for the touchend event.
Returns the event handling code for the touchmove event.
Returns the event handling code for the touchenter event.
Returns the event handling code for the touchleave event.
Returns the event handling code for the touchcancel event.
A generic version of the Element class. The type parameter is a type of Events' CurrentTarget.
The CurrentTarget type of all Element's events
EventHandler representing the code to be called when the abort event is raised.
EventHandler representing the code to be called when the blur event is raised.
EventHandler representing the code to be called when the focus event is raised.
EventHandler representing the code to be called when the cancel event is raised.
EventHandler representing the code to be called when the canplay event is raised
EventHandler representing the code to be called when the canplaythrough event is raised.
EventHandler representing the code to be called when the change event is raised.
EventHandler representing the code to be called when the click event is raised.
EventHandler representing the code to be called when the close event is raised.
EventHandler representing the code to be called when the contextmenu event is raised.
EventHandler representing the code to be called when the cuechange event is raised.
EventHandler representing the code to be called when the dblclick event is raised.
EventHandler representing the code to be called when the drag event is raised.
Is an EventHandler representing the code to be called when the dragend event is raised
Is an EventHandler representing the code to be called when the dragenter event is raised
Is an EventHandler representing the code to be called when the dragexit event is raised
Is an EventHandler representing the code to be called when the dragleave event is raised
Is an EventHandler representing the code to be called when the dragover event is raised
Is an EventHandler representing the code to be called when the dragstart event is raised
Is an EventHandler representing the code to be called when the drop event is raised
Is an EventHandler representing the code to be called when the durationchange event is raised
Is an EventHandler representing the code to be called when the emptied event is raised
Is an EventHandler representing the code to be called when the ended event is raised
Is an EventHandler representing the code to be called when the input event is raised
Is an EventHandler representing the code to be called when the invalid event is raised
Is an EventHandler representing the code to be called when the keydown event is raised
Is an EventHandler representing the code to be called when the keypress event is raised
Is an EventHandler representing the code to be called when the keyup event is raised
Is an EventHandler representing the code to be called when the load event is raised
Is an EventHandler representing the code to be called when the loadeddata event is raised
Is an EventHandler representing the code to be called when the loadedmetadata event is raised
Is an EventHandler representing the code to be called when the loadstart event is raised
Is an EventHandler representing the code to be called when the mousedown event is raised
Is an EventHandler representing the code to be called when the mouseenter event is raised
Is an EventHandler representing the code to be called when the mouseleave event is raised
Is an EventHandler representing the code to be called when the mousemove event is raised
Is an EventHandler representing the code to be called when the mouseout event is raised
Is an EventHandler representing the code to be called when the mouseover event is raised
Is an EventHandler representing the code to be called when the mouseup event is raised
Is an EventHandler representing the code to be called when the mousewheel event is raised
Is an EventHandler representing the code to be called when the pause event is raised
Is an EventHandler representing the code to be called when the play event is raised
Is an EventHandler representing the code to be called when the playing event is raised
Is an EventHandler representing the code to be called when the progress event is raised
Is an EventHandler representing the code to be called when the ratechange event is raised
Is an EventHandler representing the code to be called when the reset event is raised
Is an EventHandler representing the code to be called when the scroll event is raised
Is an EventHandler representing the code to be called when the seeked event is raised
Is an EventHandler representing the code to be called when the seeking event is raised
Is an EventHandler representing the code to be called when the select event is raised
Is an EventHandler representing the code to be called when the show event is raised
Is an EventHandler representing the code to be called when the sort event is raised
Is an EventHandler representing the code to be called when the stalled event is raised
Is an EventHandler representing the code to be called when the submit event is raised
Is an EventHandler representing the code to be called when the suspend event is raised
Is an EventHandler representing the code to be called when the timeupdate event is raised
Is an EventHandler representing the code to be called when the volumechange event is raised
Is an EventHandler representing the code to be called when the waiting event is raised
Returns the event handling code for the touchstart event.
Returns the event handling code for the touchend event.
Returns the event handling code for the touchmove event.
Returns the event handling code for the touchenter event.
Returns the event handling code for the touchleave event.
Returns the event handling code for the touchcancel event.
NodeList objects are collections of nodes such as those returned by Node.childNodes and the querySelectorAll method.
Returns an item in the list by its index, or null if out-of-bounds.
Returns an item in the list by its index, or null if out-of-bounds. Equivalent to nodeList[idx].
The number of nodes in the NodeList.
The generic version of the HTMLCollection class.
HTMLCollection is an class representing a generic collection (array) of elements (in document order) and offers methods and properties for selecting from the list.
Returns the specific node at the given zero-based index into the list. Returns null if the index is out of range.
Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.
Returns the specific node at the given zero-based index into the list. Returns null if the index is out of range.
Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.
The number of items in the collection.
The non-generic version of the HTMLCollection class.
HTMLCollection is an class representing a generic collection (array) of elements (in document order) and offers methods and properties for selecting from the list.
The position relative to the element
Before the element itself.
Just inside the element, before its first child.
Just inside the element, after its last child.
After the element itself.
A collection of nodes returned by Node.attributes
Returns the item at the given index (or null if the index is higher or equal to the number of nodes)
Returns the item at the given index (or null if the index is higher or equal to the number of nodes)
Gets a node by name
Adds (or replaces) a node by its nodeName
Removes a node (or if an attribute, may reveal a default if present)
Returns the item at the given index (or null if the index is higher or equal to the number of nodes)
Gets a node by namespaceURI and localName
Adds (or replaces) a node by its localName and namespaceURI
Removes a node (or if an attribute, may reveal a default if present)
The number of attributes in the node.
A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.
Returns a DOMString representing the base URL. The concept of base URL changes from one language to another; in HTML, it corresponds to the protocol, the domain name and the directory structure, that is all until the last '/'.
Returns a live NodeList containing all the children of this node. NodeList being live means that if the children of the Node change, the NodeList object is automatically updated.
Returns a Node representing the first direct child node of the node, or null if the node has no child.
Returns a Node representing the last direct child node of the node, or null if the node has no child.
Returns a Node representing the next node in the tree, or null if there isn't such node.
Returns a DOMString containing the name of the Node. The structure of the name will differ with the name type. E.g. An HTMLElement will contain the name of the corresponding tag, like 'audio' for an HTMLAudioElement, a Text node will have the '#text' string, or a Document node will have the '#document' string.
Returns an unsigned short representing the type of the node.
Is a DOMString representing the value of an object. For most Node type, this returns null and any set operation is ignored. For nodes of type TEXT_NODE (Text objects), COMMENT_NODE (Comment objects), and PROCESSING_INSTRUCTION_NODE (ProcessingInstruction objects), the value corresponds to the text data contained in the object.
Returns the Document that this node belongs to. If no document is associated with it, returns null.
Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.
Returns an Element that is the parent of this node. If the node has no parent, or if that parent is not an Element, this property returns null.
Returns a Node representing the previous node in the tree, or null if there isn't such node.
Is a DOMString representing the textual content of an element and all its descendants.
Adds a node to the end of the list of children of a specified parent node. If the node already exists it is removed from current parent node, then added to new parent node.
child is the node to append underneath element. Also returned.
Returns a duplicate of the node on which this method was called.
The new node that will be a clone of this node
Returns a duplicate of the node on which this method was called.
true if the children of the node should also be cloned, or false to clone only the specified node.
The new node that will be a clone of this node
Compares the position of the current node against another node in any other document.
is the node that's being compared against.
The return value is computed as the relationship that otherNode has with node.
Indicates whether a node is a descendant of a given node.
is the node that's being compared against.
The return value is true if otherNode is a descendant of node, or node itself. Otherwise the return value is false.
returns a Boolean value indicating whether the current Node has child nodes or not.
Boolean value indicating whether the current Node has child nodes or not
Inserts the specified node before a reference element as a child of the current node.
The node to insert.
The node before which newElement is inserted.
The node being inserted, that is newElement
Accepts a namespace URI as an argument and returns true if the namespace is the default namespace on the given node or false if not.
string representing the namespace against which the element will be checked.
holds the return value true or false.
Tests whether two nodes are equal.
The node to compare equality with.
Clean up all the text nodes under this element (merge adjacent, remove empty).
Removes a child node from the DOM. Returns removed node.
child node to be removed from the DOM.
Reference to the removed child node
Replaces one child node of the specified element with another.
new node to replace oldChild. If it already exists in the DOM, it is first removed.
the existing child to be replaced.
the replaced node. This is the same node as oldChild.
NodeList objects are collections of nodes such as those returned by Node.childNodes and the querySelectorAll method.
Returns an item in the list by its index, or null if out-of-bounds.
Returns an item in the list by its index, or null if out-of-bounds. Equivalent to nodeList[idx].
The number of nodes in the NodeList.
returns an unsigned short integer representing the type of the node.
HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items.
A processing instruction provides an opportunity for application-specific instructions to be embedded within XML and which can be ignored by XML processors which do not support processing their instructions (outside of their having a place in the DOM).
after the <? and before whitespace delimiting it from data
first non-whitespace character after target and before ?>
The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
New documents have a single Text node for each block of text. Over time, more Text nodes may be created as the document's content changes. The Node.normalize() method merges adjacent Text objects back into a single node for each block of text.
Returns a DOMString containing the text of all Text nodes logically adjacent to this Node, concatenated in document order.
Breaks the node into two nodes at a specified offset.
The element attribute gets or sets the text writing directionality of the content of the current element.
direction of the element must be determined based on the contents of the element
left-to-right
right-to-left
Returns a DOMHighResTimeStamp representing the amount of miliseconds elapsed since the start of the navigation, as give by PerformanceTiming.navigationStart to the call of the method.
Is a PerformanceTiming object containing latency-related performance information.
Is a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.
The PerformanceTiming interface represents timing-related performance information for the given page.
An object of this type can be obtained by calling the Performance.timing read-only attribute.
Is an int representing the moment, in miliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context. If there is no previous document, this value will be the same as PerformanceTiming.fetchStart.
Is an int representing the moment, in miliseconds since the UNIX epoch, the unload event has been thrown. If there is no previous document, or if the previous document, or one of the needed redirects, is not of the same origin, the value returned is 0.
Is an int representing the moment, in miliseconds since the UNIX epoch, the unload event handler finishes. If there is no previous document, or if the previous document, or one of the needed redirects, is not of the same origin, the value returned is 0.
Is an int representing the moment, in miliseconds since the UNIX epoch, the first HTTP redirect starts. If there is no redirect, or if one of the redirect is not of the same origin, the value returned is 0.
Is an int representing the moment, in miliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when the last byte of the HTTP response has been received. If there is no redirect, or if one of the redirect is not of the same origin, the value returned is 0.
Is an int representing the moment, in miliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request. This moment is before the check to any application cache.
Is an int representing the moment, in miliseconds since the UNIX epoch, where the domain lookup starts. If a persistent connection is used, or the information is stored in a cache or a local resource, the value will be the same as PerformanceTiming.fetchStart.
Is an int representing the moment, in miliseconds since the UNIX epoch, where the domain lookup is finished. If a persistent connection is used, or the information is stored in a cache or a local resource, the value will be the same as PerformanceTiming.fetchStart.
Is an int representing the moment, in miliseconds since the UNIX epoch, where the request to open a connection is sent to the network. If the transport layer reports an error and the connection establishment is started again, the last connection establisment start time is given. If a persistent connection is used, the value will be the same as PerformanceTiming.fetchStart.
Is an int representing the moment, in miliseconds since the UNIX epoch, where the connection is opened network. If the transport layer reports an error and the connection establishment is started again, the last connection establisment end time is given. If a persistent connection is used, the value will be the same as PerformanceTiming.fetchStart. A connection is considered as opened when all secure connection handshake, or SOCKS authentication, is terminated.
Is an int representing the moment, in miliseconds since the UNIX epoch, where the secure connection handshake starts. If no such connection is requested, it returns 0.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the browser sent the request to obtain the actual document, from the server or from a cache. If the transport layer fails after the start of the request and the connection is reopened, this property will be set to the time corresponding to the new request.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the browser received the first byte of the response, from the server from a cache, of from a local resource.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the browser received the last byte of the response, or when the connection is closed if this happened first, from the server from a cache, of from a local resource.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the parser started its work, that is when its Document.readyState changes to 'loading' and the corresponding readystatechange event is thrown.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to 'interactive' and the corresponding readystatechange event is thrown.
Is an int representing the moment, in miliseconds since the UNIX epoch, right before the parser sent the DOMContentLoaded event, that is right after all the scripts that need to be executed right after parsing has been executed.
Is an int representing the moment, in miliseconds since the UNIX epoch, right after all the scripts that need to be executed as soon as possible, in order or not, has been executed.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to 'complete' and the corresponding readystatechange event is thrown.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the load event was sent for the current document. If this event has not yet been sent, it returns 0.
Is an int representing the moment, in miliseconds since the UNIX epoch, when the load event handler terminated, that is when the load event is completed. If this event has not yet been sent, or is not yet completed, it returns 0.
The PerformanceNavigation interface represents information about how the navigation to the current document was done.
An object of this type can be obtained by calling the Performance.navigation read-only attribute.
Is an short containing a constant describing how the navigation to this page was done.
Is an short representing the number of REDIRECTs done before reaching the page.
A constant describing how the navigation to this page was done.
The page was accessed by following a link, a bookmark, a form submission, a script, or typing the URL in the address bar.
The page was accessed by clicking the Reload button or via the Location.reload() method.
The page was accessed by navigating into the history.
Any other way.
loading status of the document
"loading" while the document is loading
"interactive" once the document is finished parsing but still loading sub-resources
"complete" once the document has loaded
The screen object is a special object for inspecting properties of the screen on which the current window is being rendered.
Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.
Returns the first available pixel available from the left side of the screen.
Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.
Returns the amount of horizontal space in pixels available to the window.
Returns the color depth of the screen.
Returns the height of the screen in pixels.
Returns the distance in pixels from the left side of the main screen to the left side of the current screen.
Gets the bit depth of the screen.
Returns the distance in pixels from the top side of the current screen.
Returns the width of the screen.
The Range interface represents a fragment of a document that can contain nodes and parts of text nodes in a given document.
A range can be created using the createRange method of the Document object. Range objects can also be retrieved by using the getRangeAt method of the Selection object. There also is the Range() constructor available.
Returns a Boolean indicating whether the range's start and end points are at the same position.
Returns the deepest Node that contains the startContainer and endContainer nodes.
Returns the Node within which the Range ends.
Returns a number representing where in the endContainer the Range ends.
Returns the Node within which the Range starts.
Returns a number representing where in the startContainer the Range starts.
Sets the start position of a Range.
The Node where the Range should start.
An integer greater than or equal to zero representing the offset for the start of the Range from the start of startNode.
Sets the end position of a Range.
The Node where the Range should end.
An integer greater than or equal to zero representing the offset for the end of the Range from the start of endNode.
Sets the start position of a Range relative to another Node.
The Node before which the Range should start.
Sets the start position of a Range relative to another Node.
The Node to start the Range after.
Sets the end position of a Range relative to another Node.
The Node to end the Range before.
Sets the end position of a Range relative to another Node.
The Node to end the Range after.
Sets the Range to contain the Node and its contents.
The Node to select within a Range.
Sets the Range to contain the contents of a Node.
The Node whose contents will be selected within a Range.
Collapses the Range to one of its boundary points.
Collapses the Range to one of its boundary points.
A boolean value: true collapses the Range to its start, false to its end. If omitted, it defaults to false .
Returns a DocumentFragment copying the nodes of a Range.
Removes the contents of a Range from the Document.
Moves contents of a Range from the document tree into a DocumentFragment.
Insert a Node at the start of a Range.
The Node to insert at the start of the range.
Moves content of a Range into a new Node.
A Node to split based on the range.
Compares the boundary points of the Range with another one.
A constant describing the comparison method
A Range to compare boundary points with the range.
A number, -1, 0, or 1, indicating whether the corresponding boundary-point of the Range is respectively before, equal to, or after the corresponding boundary-point of sourceRange.
Returns a Range object with boundary points identical to the cloned Range.
Releases the Range from use to improve performance.
Returns -1, 0, or 1 indicating whether the point occurs before, inside, or after the Range.
The Node to compare with the Range.
An integer greater than or equal to zero representing the offset inside the referenceNode.
returns -1, 0, or 1 depending on whether the referenceNode is before, the same as, or after the Range.
Returns a DocumentFragment created from a given string of code.
Text that contains text and tags to be converted to a document fragment.
Returns a ClientRect object which bounds the entire contents of the Range; this would be the union of all the rectangles returned by range.getClientRects().
Returns a list of ClientRect objects that aggregates the results of Element.getClientRects() for all the elements in the Range.
Returns a boolean indicating whether the given node intersects the Range.
The Node to compare with the Range.
Returns a boolean indicating whether the given point is in the Range.
The Node to compare with the Range.
The offset into Node of the point to compare with the Range.
compares the start boundary-point of sourceRange to the start boundary-point of Range.
compares the start boundary-point of sourceRange to the end boundary-point of Range.
compares the end boundary-point of sourceRange to the end boundary-point of Range.
compares the end boundary-point of sourceRange to the start boundary-point of Range.
Selection is the class of the object returned by window.getSelection() and other methods. It represents the text selection in the greater page, possibly spanning multiple elements, when the user drags over static text and other parts of the page. For information about text selection in an individual text editing element, see Input, TextArea and document.activeElement which typically return the parent object returned from window.getSelection().
Returns the Node in which the selection begins.
Returns the number of characters that the selection's anchor is offset within the anchorNode.
Returns the Node in which the selection ends.
Returns a number representing the offset of the selection's anchor within the focusNode. If focusNode is a text node, this is the number of characters within focusNode preceding the focus. If focusNode is an element, this is the number of child nodes of the focusNode preceding the focus.
Returns a Boolean indicating whether the selection's start and end points are at the same position.
Returns the number of ranges in the selection.
Returns a range object representing one of the ranges currently selected.
The zero-based index of the range to return. A negative number or a number greater than or equal to rangeCount will result in an error.
The range object that will be returned.
Collapses the current selection to a single point. The document is not modified. If the content is focused and editable, the caret will blink there.
The caret location will be within this node.
0 - Collapses the selection from the anchor to the beginning of parentNode's text. 1 - Collapses the selection from the anchor to the end of parentNode's text.
Moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection will be from the anchor to the new focus regardless of direction.
The node within which the focus will be moved.
The offset position within parentNode where the focus will be moved to.
Applies a change to the current selection or cursor position, using simple textual commands.
The type of change to apply. Specify "move" to move the current cursor position or "extend" to extend the current selection.
The direction in which to adjust the current selection. You can specify "forward" or "backward" to adjust in the appropriate direction based on the language at the selection point. If you want to adjust in a specific direction, you can specify "left" or "right".
The distance to adjust the current selection or cursor position.
Collapses the selection to the start of the first range in the selection. If the content of the selection is focused and editable, the caret will blink there.
Collapses the selection to the end of the last range in the selection. If the content the selection is in is focused and editable, the caret will blink there.
Adds all the children of the specified node to the selection. Previous selection is lost.
All children of parentNode will be selected. parentNode itself is not part of the selection.
Adds a Range to a Selection.
A Range object that will be added to the Selection.
Removes a range from the selection.
A range object that will be removed to the selection.
Removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and leaving nothing selected.
Deletes the actual text being represented by a selection object from the document's DOM.
Modifies the cursor Bidi level after a change in keyboard direction.
true if the new language is right-to-left or false if the new language is left-to-right.
Indicates if the node is part of the selection.
The node that is being looked for whether it is part of the selection
When true , containsNode returns true when a part of the node is part of the selection. When false , containsNode only returns true when the entire node is part of the selection.
The type of selection change.
The direction in which to adjust the current selection.
The distance to adjust the current selection or cursor position.
The TreeWalker object represents the nodes of a document subtree and a position within them.
A TreeWalker can be created using the Document.createTreeWalker() method.
Returns a Node representing the root node as specified when the TreeWalker was created.
Returns an unsigned long being a bitmask made of constants describing the types of Node that must to be presented. Non-matching nodes are skipped, but their children may be included, if relevant.
Returns a NodeFilter used to select the relevant nodes.
the Node on which the TreeWalker is currently pointing at.
Moves the current Node to the first visible ancestor node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, or if it is before that the root node defined at the object construction, returns null and the current node is not changed.
Moves the current Node to the first visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed.
Moves the current Node to the last visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed.
Moves the current Node to its previous sibling, if any, and returns the found sibling. I there is no such node, return null and the current node is not changed.
Moves the current Node to its next sibling, if any, and returns the found sibling. I there is no such node, return null and the current node is not changed.
Moves the current Node to the previous visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists,or if it is before that the root node defined at the object construction, returns null and the current node is not changed.
Moves the current Node to the next visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, returns null and the current node is not changed.
The ArrayBuffer is a data type that is used to represent a generic, fixed-length binary data buffer. You can't directly manipulate the contents of an ArrayBuffer; instead, you create an ArrayBufferView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer.
The empty constuctor
The constructor accepts as input a byte length for the new buffer, and returns the newly-created ArrayBuffer object.
The size, in bytes, of the array buffer to create.
The size, in bytes, of the array. This is established when the array is constructed and cannot be changed. Read only.
Returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive. If either begin or end is negative, it refers to an index from the end of the array, as opposed to from the beginning.
Byte index to start slicing.
A new ArrayBuffer object.
Returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive. If either begin or end is negative, it refers to an index from the end of the array, as opposed to from the beginning.
Byte index to start slicing.
Byte index to end slicing. If end is unspecified, the new ArrayBuffer contains all bytes from begin to the end of this ArrayBuffer.
A new ArrayBuffer object.
ArrayBufferView is a helper type representing any of the following JavaScript TypedArray types:
Int8Array,
Uint8Array,
Uint8ClampedArray,
Int16Array,
Uint16Array,
Int32Array,
Uint32Array,
Float32Array,
Float64Array or
DataView.
This is a helper type to simplify the specification, it isn't an interface and there are no objects implementing it.
An ArrayBuffer is a useful object for representing an arbitrary chunk of data. In many cases, such data will be read from disk or from the network, and will not follow the alignment restrictions that are imposed on the Typed Array Views described earlier. In addition, the data will often be heterogeneous in nature and have a defined byte order.
The DataView view provides a low-level interface for reading such data from and writing it to an ArrayBuffer.
Returns a new DataView object using the passed ArrayBuffer for its storage.
An existing ArrayBuffer to use as the storage for the new DataView object.
Returns a new DataView object using the passed ArrayBuffer for its storage.
An existing ArrayBuffer to use as the storage for the new DataView object.
The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the view of the buffer will start with the first byte.
Returns a new DataView object using the passed ArrayBuffer for its storage.
An existing ArrayBuffer to use as the storage for the new DataView object.
The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the view of the buffer will start with the first byte.
The number of elements in the byte array. If unspecified, length of the view will match the buffer's length.
The buffer this view references. Read only.
The length, in bytes, of the view. Read only.
The offset, in bytes, to the first byte of the view within the ArrayBuffer. Read only.
Gets a signed 8-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Gets an unsigned 8-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Gets a signed 16-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Gets a signed 16-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Indicates whether the 16-bit int is stored in little- or big-endian format. If false or undefined, a big-endian value is read.
Gets an unsigned 16-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Gets an unsigned 16-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Indicates whether the 16-bit int is stored in little- or big-endian format. If false or undefined, a big-endian value is read.
Gets an signed 32-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Gets an signed 32-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Indicates whether the 32-bit int is stored in little- or big-endian format. If false or undefined, a big-endian value is read.
Gets an unsigned 32-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Gets an unsigned 32-bit integer at the specified byte offset from the start of the view.
The offset, in byte, from the start of the view where to read the data.
Indicates whether the 32-bit int is stored in little- or big-endian format. If false or undefined, a big-endian value is read.
Represents the prototype for TypedArray constructors.
TypedArray instances inherit from TypedArray.prototype. You can use the constructor's prototype
object to add properties or methods to all TypedArray instances, where TypedArray is one of the
typed array types.
Returns the ArrayBuffer referenced by the typed array. Fixed at construction time and thus
read only.
Returns the length (in bytes) of the typed array from the start of its ArrayBuffer.
Fixed at construction time and thus read only
Returns the offset (in bytes) of the typed array from the start of its ArrayBuffer.
Fixed at construction time and thus read only.
Returns the number of elements hold in the typed array. Fixed at construction time and thus
read only.
Copies a sequence of array elements within the array to the position starting at target.
The copy is taken from the index positions of the second and third arguments start and end.
The end argument is optional and defaults to the length of the array.
Target start index position where to copy the elements to.
Source start index position where to start copying elements from.
Most browsers do not support this yet.
Copies a sequence of array elements within the array to the position starting at target.
The copy is taken from the index positions of the second and third arguments start and end.
The end argument is optional and defaults to the length of the array.
Target start index position where to copy the elements to.
Source start index position where to start copying elements from.
Optional. Source end index position where to end copying elements from.
Most browsers do not support this yet.
Tests whether all elements in the array pass the test provided by a function.
Function to test for each element, taking three arguments:
currentValue: The current element being processed in the typed array.
index: The index of the current element being processed in the typed array.
array: The typed array every was called upon.
Optional. Value to use as this when executing callback.
True if callback returns true for all elements on array, false otherwise.
Most browsers do not support this yet.
Fills all the elements of an array from a start index to an end index with a static value.
Value to fill the typed array with.
Most browsers do not support this yet.
Fills all the elements of an array from a start index to an end index with a static value.
Value to fill the typed array with.
Optional. Start index. Defaults to 0.
Most browsers do not support this yet.
Fills all the elements of an array from a start index to an end index with a static value.
Value to fill the typed array with.
Optional. Start index. Defaults to 0.
Optional. End index. Defaults to 0.
Most browsers do not support this yet.
Creates a new array with all of the elements of this array for which the provided filtering
function returns true.
Function to test each element of the typed array. Invoked with arguments
(element, index, typedarray). Return true to keep the element, false otherwise.
Value to use as this when executing callback.
Most browsers do not support this yet.
Calls a function for each element in the array.
Function that produces an element of the new typed array, taking three arguments:
currentValue: The current element being processed in the typed array.
index: The index of the current element being processed in the typed array.
array: The array forEach() was called upon.
Optional. Value to use as 'this' when executing callback.
Most browsers do not support this yet.
Returns the first (least) index of an element within the array equal to the specified
value, or -1 if none is found.
Element to locate in the typed array.
The index to start the search at. If the index is greater than or equal to the typed array's
length, -1 is returned, which means the typed array will not be searched. If the provided
index value is a negative number, it is taken as the offset from the end of the typed array.
Note: if the provided index is negative, the typed array is still searched from front to back.
If the calculated index is less than 0, then the whole typed array will be searched.
Default: 0 (entire typed array is searched).
The first index at which a given element can be found in the typed array, or -1 if it is
not present.
Most browsers do not support this yet.
Joins all elements of an array into a string.
Optional. Specifies a string to separate each element. The separator is converted to a string
if necessary. If omitted, the typed array elements are separated with a comma (",").
A string containing the elements, separated by "," or the specified separator.
Most browsers do not support this yet.
Joins all elements of an array into a string.
Optional. Specifies a string to separate each element. The separator is converted to a string
if necessary. If omitted, the typed array elements are separated with a comma (",").
A string containing the elements, separated by "," or the specified separator.
Most browsers do not support this yet.
Returns the last (greatest) index of an element within the array equal to the specified
value, or -1 if none is found.
Element to locate in the typed array.
The last index at which a given element can be found in the typed array, or -1 if it is
not present.
Most browsers do not support this yet.
Returns the last (greatest) index of an element within the array equal to the specified
value, or -1 if none is found.
Element to locate in the typed array.
The index at which to start searching backwards. Defaults to the typed array's length, i.e.
the whole typed array will be searched. If the index is greater than or equal to the length
of the typed array, the whole typed array will be searched. If negative, it is taken as the
offset from the end of the typed array. Note that even when the index is negative, the typed
array is still searched from back to front. If the calculated index is less than 0, -1 is
returned, i.e. the typed array will not be searched.
The last index at which a given element can be found in the typed array, or -1 if it is
not present.
Most browsers do not support this yet.
Creates a new array with the results of calling a provided function on every element in this array.
Function that produces an element of the new typed array, taking three arguments:
currentValue: The current element being processed in the typed array.
index: The index of the current element being processed in the typed array.
array: The array forEach() was called upon.
Optional. Value to use as 'this' when executing callback.
Most browsers do not support this yet.
Apply a function against an accumulator and each value of the array (from left-to-right)
as to reduce it to a single value.
Function to execute on each value in the typed array, taking four arguments:
previousValue: The value previously returned in the last invocation of the callback, or initialValue,
if supplied (see below).
currentValue: The current element being processed in the typed array.
index: The index of the current element being processed in the typed array.
array: The typed array reduce was called upon.
Optional. Object to use as the first argument to the first call of the callback.
Most browsers do not support this yet.
Apply a function against an accumulator and each value of the array (from right-to-left)
as to reduce it to a single value.
Function to execute on each value in the typed array, taking four arguments:
previousValue: The value previously returned in the last invocation of the callback, or initialValue,
if supplied (see below).
currentValue: The current element being processed in the typed array.
index: The index of the current element being processed in the typed array.
array: The typed array reduce was called upon.
Optional. Object to use as the first argument to the first call of the callback.
Most browsers do not support this yet.
Reverses the order of the elements of an array — the first becomes the last,
and the last becomes the first.
Most browsers do not support this yet.
Stores multiple values in the typed array, reading input values from a specified array.
The array from which to copy values. All values from the source array are copied into the
target array, unless the length of the source array plus the offset exceeds the length of
the target array, in which case an exception is thrown.
Stores multiple values in the typed array, reading input values from a specified array.
The array from which to copy values. All values from the source array are copied into the
target array, unless the length of the source array plus the offset exceeds the length of
the target array, in which case an exception is thrown.
The offset into the target array at which to begin writing values from the source array.
If you omit this value, 0 is assumed (that is, the source array will overwrite values in
the target array starting at index 0).
Stores multiple values in the typed array, reading input values from a specified array.
If the source array is a typed array, the two arrays may share the same underlying
ArrayBuffer; the browser will intelligently copy the source range of the buffer to the
destination range.
The offset into the target array at which to begin writing values from the source array.
If you omit this value, 0 is assumed (that is, the source array will overwrite values in
the target array starting at index 0).
Extracts a section of an array and returns a new array.
A shallow copy of elements from the original typed array
Most browsers do not support this yet.
Extracts a section of an array and returns a new array.
Zero-based index at which to begin extraction.
As a negative index, begin indicates an offset from the end of the sequence.
slice(-2) extracts the last two elements in the sequence.
If begin is omitted, slice begins from index 0.
A shallow copy of elements from the original typed array
Most browsers do not support this yet.
Extracts a section of an array and returns a new array.
Zero-based index at which to begin extraction.
As a negative index, begin indicates an offset from the end of the sequence.
slice(-2) extracts the last two elements in the sequence.
If begin is omitted, slice begins from index 0.
Zero-based index at which to end extraction.
slice() extracts up to but not including end.slice(1,4) extracts the second element up to
the fourth element (elements indexed 1, 2, and 3).
As a negative index, end indicates an offset from the end of the sequence.
slice(2,-1) extracts the third element through the second-to-last element in the sequence.
If end is omitted, slice extracts to the end of the sequence (arr.length).
A shallow copy of elements from the original typed array
Most browsers do not support this yet.
Returns true if at least one element in this array satisfies the provided testing function.
Function to test for each element, taking three arguments:
currentValue: The current element being processed in the typed array.
index: The index of the current element being processed in the typed array.
array: The array some() was called upon.
Optional. Value to use as 'this' when executing callback.
True if at least one element in this array satisfies the provided testing function.
False otherwise.
Most browsers do not support this yet.
Sorts the elements of an array in place and returns the array.
Sorted TypedArray.
Most browsers do not support this yet.
Sorts the elements of an array in place and returns the array.
Specifies a function that defines the sort order. If omitted, the array is sorted according to
each character's Unicode code point value, according to the string conversion of each element.
Example: int compareFunction(a, b) { ... };
Most browsers do not support this yet.
If compareFunction is supplied, the array elements are sorted according to the return value of the
compare function. If a and b are two elements being compared, then:
• If compareFunction(a, b) is less than 0, sort a to a lower index than b, i.e. a comes first.
• If compareFunction(a, b) returns 0, leave a and b unchanged with respect to each other, but sorted
with respect to all different elements. Note: the ECMAscript standard does not guarantee this
behaviour, and thus not all browsers (e.g. Mozilla versions dating back to at least 2003) respect
this.
• If compareFunction(a, b) is greater than 0, sort b to a lower index than a.
• compareFunction(a, b) must always return the same value when given a specific pair of elements a
and b as its two arguments. If inconsistent results are returned then the sort order is undefined.
Sorted TypedArray.
Returns a new TypedArray from the given start and end element index.
A new TypedArray on the same ArrayBuffer store and with the same element types
as for this TypedArray object.
Some browsers do not support this yet (may require begin and end parameters).
Returns a new TypedArray from the given start and end element index.
Element to begin at. The offset is inclusive.
A new TypedArray on the same ArrayBuffer store and with the same element types
as for this TypedArray object.
Returns a new TypedArray from the given start and end element index.
Element to begin at. The offset is inclusive.
Element to end at. The offset is exclusive. If not specified, all elements from the one
specified by begin to the end of the array are included in the new view.
A new TypedArray on the same ArrayBuffer store and with the same element types
as for this TypedArray object.
The elements are converted to Strings using their toLocaleString methods and these Strings
are separated by a locale-specific String (such as a comma “,”).
A localized string representing the array and its elements.
Joins the array and returns one string containing each array element separated by commas.
A string representing the array and its elements.
Gets a value indicating whether the TypedArray is read-only.
Represents an array of 16-bit unsigned integers in the platform byte order.
If control over byte order is needed, use DataView instead. The contents are initialized to 0.
Once established, you can reference elements in the array using the object's methods, or using
standard array index syntax (that is, using bracket notation).
Creates a new Uint16Array of the specified length.
Length of array to create
Creates a new Uint16Array out of the specified Uint16Array.
Uint16Array to use as initial contents to the new array.
Creates a new Uint16Array out of the specified object.
Object to be converted into the new array.
Creates a new Uint16Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Uint16Array type: "Uint16Array".
Represents an array of 32-bit unsigned integers in the platform byte order.
If control over byte order is needed, use DataView instead. The contents are initialized to 0.
Once established, you can reference elements in the array using the object's methods, or using
standard array index syntax (that is, using bracket notation).
Creates a new Uint32Array of the specified length.
Length of array to create
Creates a new Uint32Array out of the specified Uint32Array.
Uint32Array to use as initial contents to the new array.
Creates a new Uint32Array out of the specified object.
Object to be converted into the new array.
Creates a new Uint32Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Uint32Array type: "Uint32Array".
Represents an array of twos-complement 8-bit unsigned integers. The contents are initialized to 0.
Once established, you can reference elements in the array using the object's methods, or using standard
array index syntax (that is, using bracket notation).
Creates a new Uint8Array of the specified length.
Length of array to create
Creates a new Uint8Array out of the specified Uint8Array.
Uint8Array to use as initial contents to the new array.
Creates a new Uint8Array out of the specified object.
Object to be converted into the new array.
Creates a new Uint8Array out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Uint8Array type: "Uint8Array".
Represents an array of twos-complement 8-bit unsigned integers clamped to 0-255. The contents are
initialized to 0. Once established, you can reference elements in the array using the object's
methods, or using standard array index syntax (that is, using bracket notation).
Creates a new Uint8ClampedArray of the specified length.
Length of array to create
Creates a new Uint8ClampedArray out of the specified Uint8ClampedArray.
Uint8ClampedArray to use as initial contents to the new array.
Creates a new Uint8ClampedArray out of the specified object.
Object to be converted into the new array.
Creates a new Uint8ClampedArray out of the specified buffer and byteOffset with the specified length.
Arraybuffer to use as base for contents.
Optional. Position in the buffer to start reading data from.
Optional. Number of elements to consider while creating the array.
Allows index operations on the array.
Index position in the array.
The element in the specified position.
Returns a number value of the element size.
Length property whose value is 3.
Returns the string value of the constructor name. In the case of the Uint8ClampedArray type: "Uint8ClampedArray".
The URLSearchParams interface defines utility methods to work with the query string of a URL.
Constructor returning a URLSearchParams object.
Copy constructor returning a URLSearchParams object.
The ValidityState interface represents the validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.
The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
The value does not match the specified pattern.
The value is greater than the maximum specified by the max attribute.
The value is less than the minimum specified by the min attribute.
The value does not fit the rules determined by the step attribute (that is, it's not evenly divisible by the step value).
The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.
The value is not in the required syntax (when type is email or url).
The element meets all constraint validations, and is therefore considered to be valid.
The element has a required attribute, but no value.
The global object represents an object ontaining a DOM document;
This read-only property indicates whether the referenced window is closed or not.
Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called.
Returns a reference to the document that the window contains.
Returns the element (such as <iframe> or <object>) in which the window is embedded, or null if the window is top-level.
Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
Returns a reference to the history objectt, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
Width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar.
Returns the number of frames in the window.
The Window.location read-only property returns a Location object with information about the current location of the document.
Returns the locationbar object, whose visibility can be checked.
Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
Returns the menubar object, whose visibility can be toggled in the window.
Gets/sets the name of the window.
The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have names.
The Window.navigator read-only property returns a reference to the Navigator object, which can be queried for information about the application running the script.
Returns a reference to the window that opened this current window.
Gets the height of the outside of the browser window.
Gets the width of the outside of the browser window.
An alias for window.scrollX.
An alias for window.scrollY.
Returns a reference to the parent of the current window or subframe.
Provides a hosting area for performance related attributes.
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
Returns a reference to the screen object associated with the window.
The screen object is a special object for inspecting properties of the screen on which the current window is being rendered.
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
Returns the vertical distance of the top border of the user's browser from the top side of the screen.
Returns the scrollbars object, whose visibility can be toggled in the window.
Returns the number of pixels that the document has already been scrolled horizontally.
Returns the number of pixels that the document has already been scrolled vertically.
Returns an object reference to the window object itself.
A storage object for storing data within a single page session.
Gets/sets the text in the statusbar at the bottom of the browser.
Returns the statusbar object, whose visibility can be toggled in the window.
Returns a reference to the topmost window in the window hierarchy. This property is read only.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The Window.alert() method displays an alert dialog with the optional specified content and an OK button.
The Window.alert() method displays an alert dialog with the optional specified content and an OK button.
message is an optional string of text you want to display in the alert dialog, or, alternatively, an object that is converted into a string and displayed.
The Window.atob()decodes a string of data which has been encoded using base-64 encoding. You can use the window.btoa() method to encode and transmit data which may otherwise cause communication problems, then transmit it and use the window.atob() method to decode the data again. For example, you can encode, transmit, and decode control characters such as ASCII values 0 through 31.
encoded string
Returns the window to the previous item in the history.
Shifts focus away from the window.
Creates a base-64 encoded ASCII string from a "string" of binary data.
You can use this method to encode data which may otherwise cause communication problems, transmit it, then use the window.atob method to decode the data again. For example, you can encode control characters such as ASCII values 0 through 31.
String to encode
Cancels an animation frame request previously scheduled through a call to window.requestAnimationFrame().
The ID value returned by the call to window.requestAnimationFrame() that requested the callback.
Cancels repeated action which was set up using setInterval.
intervalID is the identifier of the repeated action you want to cancel. This ID is returned from setInterval().
Clears the delay set by window.setTimeout().
timeoutID is the ID of the timeout you wish to clear, as returned by window.setTimeout().
Closes the current window, or a referenced window.
This method is only allowed to be called for windows that were opened by a script using the window.open method. If the window was not opened by a script, the following error appears in the JavaScript Console: Scripts may not close windows that were not opened by script.
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
result is a boolean value indicating whether OK or Cancel was selected (true means OK).
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
message is the optional string to be displayed in the dialog.
result is a boolean value indicating whether OK or Cancel was selected (true means OK).
Dispatches the specified event to the current element.
To create an event object use the createEvent method in Firefox, Opera, Google Chrome, Safari and Internet Explorer from version 9. After the new event is created, initialize it first (for details, see the page for the createEvent method). When the event is initialized, it is ready for dispatching.
Required. Reference to an event object to be dispatched.
Boolean that indicates whether the default action of the event was not canceled.
Prints messages to the (native) console.
message is the string message to log.
Finds a string in a window.
The text string for which to search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
The text string for which to search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
Boolean. If true, specifies a search in frames.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
Boolean. If true, specifies a search in frames.
Boolean. If true, specifies a show Dialog.
true if the string is found; otherwise, false.
Makes a request to bring the window to the front. It may fail due to user settings and the window isn't guaranteed to be frontmost before this method returns.
Moves the window one document forward in the history.
The Window.getComputedStyle() method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain
The Element for which to get the computed style.
The returned style is a CSSStyleDeclaration object.
The Window.getComputedStyle() method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain
The Element for which to get the computed style.
A string specifying the pseudo-element to match. Must be omitted (or null) for regular elements.
The returned style is a CSSStyleDeclaration object.
getDefaultComputedStyle() gives the default computed values of all the CSS properties of an element, ignoring author styling. That is, only user-agent and user styles are taken into account.
The Element for which to get the computed style.
The returned style is a CSSStyleDeclaration object.
getDefaultComputedStyle() gives the default computed values of all the CSS properties of an element, ignoring author styling. That is, only user-agent and user styles are taken into account.
The Element for which to get the computed style.
A string specifying the pseudo-element to match. Must be null (or not specified) for regular elements.
The returned style is a CSSStyleDeclaration object.
Returns a selection object representing the range of text selected by the user.
selection is a Selection object. When cast to string, either by adding empty quotes "" or using .toString, this object is the text selected.
Returns the window to the home page.
Returns a new MediaQueryList object representing the parsed results of the specified media query string.
string representing the media query for which to return a new MediaQueryList object.
Moves the current window by a specified amount.
the amount of pixels to move the window horizontally.
the amount of pixels to move the window vertically.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is a long integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is a long integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
The arguments to be passed to the new window (optional).
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The window.postMessage method safely enables cross-origin communication.
Data to be sent to the other window.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
The window.postMessage method safely enables cross-origin communication.
Data to be sent to the other window.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
Is a sequence of Transferable objects that are transferred with the message.
Opens the Print Dialog to print the current document.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string containing the text entered by the user, or the value null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
string containing the text entered by the user, or the value null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.
string containing the text entered by the user, or the value null.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Resizes the current window by a certain amount.
the number of pixels to grow the window horizontally.
the number of pixels to grow the window vertically.
Dynamically resizes window.
integer representing the new outerWidth in pixels (including scroll bars, title bars, etc).
integer value representing the new outerHeight in pixels (including scroll bars, title bars, etc).
Scrolls the window to a particular place in the document.
the pixel along the horizontal axis of the document that you want displayed in the upper left.
the pixel along the vertical axis of the document that you want displayed in the upper left.
Scrolls the document in the window by the given amount.
X is the offset in pixels to scroll horizontally.
Y is the offset in pixels to scroll vertically.
Scrolls the document by the given number of lines.
the number of lines to scroll the document by.
Scrolls the current document by the specified number of pages.
the number of pages to scroll.
Scrolls to a particular set of coordinates in the document.
the pixel along the horizontal axis of the document that you want displayed in the upper left.
the pixel along the vertical axis of the document that you want displayed in the upper left.
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
a variant, indicating the returnValue property as set by the window of the document specified by uri.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
an optional variant that contains values that should be passed to the dialog box; these are made available in the window object's window.dialogArguments property.
a variant, indicating the returnValue property as set by the window of the document specified by uri.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
an optional variant that contains values that should be passed to the dialog box; these are made available in the window object's window.dialogArguments property.
an optional string that specifies window ornamentation for the dialog box, using one or more semicolon delimited values:
a variant, indicating the returnValue property as set by the window of the document specified by uri.
Sizes the window according to its content.
This method stops window loading.
Updates the state of commands of the current chrome window (UI).
a particular string which describes what kind of update event this is (e.g. whether we are in bold right now).
An event handler property for abort events on the window
An event handler property for before-unload events on the window
An event handler property for blur events on the window
An event handler property for change events on the window
An event handler property for click events on the window
An event handler property for handling the window close event
An event handler property for right-click events on the window
An event handler property for any ambient light levels changes
FIXME: NeedsContents
An event handler property for any device orientation changes
An event handler property for device proximity event
An event handler property for drag and drop events on the window
An event handler property for errors raised on the window
An event handler property for focus events on the window
An event handler property for hash change events on the window; called when the part of the URL after the hash mark ("#") changes
An event handler property for keydown events on the window
An event handler property for keypress events on the window
An event handler property for keyup events on the window
An event handler property for window loading
An event handler property for mousedown events on the window
An event handler property for mousemove events on the window
An event handler property for mouseout events on the window
An event handler property for mouseover events on the window
An event handler property for mouseup events on the window
An event handler property for paint events on the window
An event handler property for popstate events, which are fired when navigating to a session history entry representing a state object
An event handler property for reset events on the window
An event handler property for window resizing
An event handler property for window scrolling
An event handler property for window selection
An event handler property for submits on window forms
An event handler property for unload events on the window
An event handler property for user proximity events
An event handler property for pageshow events on the window
An event handler property for pagehide events on the window
The global Infinity property is a numeric value representing infinity.
The global NaN property is a value representing Not-A-Number.
The global undefined property represents the value undefined.
The eval() method evaluates JavaScript code represented as a string.
A string representing a JavaScript expression, statement, or sequence of statements. The expression can include variables and properties of existing objects.
The global isFinite() function determines whether the passed value is a finite number. If needed, the parameter is first converted to a number.
The value to be tested for finiteness.
Parses a string argument and returns a floating point number corresponding to double .Net type.
A string that represents the value you want to parse.
Parsed floating point number with type corresponding to double .Net type
The parseInt() function parses a string argument and returns an integer of the specified radix or base.
The value to parse. If string is not a string, then it is converted to one. Leading whitespace in the string is ignored.
The parseInt() function parses a string argument and returns an integer of the specified radix or base.
The value to parse. If string is not a string, then it is converted to one. Leading whitespace in the string is ignored.
An integer that represents the radix of the above mentioned string. Always specify this parameter to eliminate reader confusion and to guarantee predictable behavior. Different implementations produce different results when a radix is not specified.
The isNaN() function determines whether a value is NaN or not. Be careful, this function is broken. You may be interested in Number.isNaN() as defined in ECMAScript 6 or you can use typeof to determine if the value is Not-A-Number.
The value to be tested.
The decodeURI() function decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine.
A complete, encoded Uniform Resource Identifier.
The decodeURIComponent() method decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine.
An encoded component of a Uniform Resource Identifier.
The encodeURI() method encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).
A complete Uniform Resource Identifier.
The encodeURIComponent() method encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).
A component of a URI.
HTML5 WeakMap. Keys must be object (primitives and string are not allowed). Values can be any type (inc. primitives)
MDN
Default constructor
Initialize WeakMap using items that are expected to be an array of the two-element-arrays. Each two-element-array is key and value respecively
Beware that it is not widely implemented (2016-05)
gets contained element OR returns null.
Sets value. Neither key nor value can be null
Deletes element. Returns true if element was contained in the map. Returns false when it wasn't
Checks whether element with given key is present in map.
The WebSocket interface provides the API for creating and managing a WebSocket connection
to a server, as well as for sending and receiving data on the connection.
The URL to which to connect; this should be the URL to which the WebSocket server will respond.
The URL to which to connect; this should be the URL to which the WebSocket server will respond.
This string is used to indicate sub-protocol, so that a single server
can implement multiple WebSocket sub-protocols (for example, you might want one server
to be able to handle different types of interactions depending on the specified protocol).
The URL to which to connect; this should be the URL to which the WebSocket server will respond.
These strings are used to indicate sub-protocols, so that a single server
can implement multiple WebSocket sub-protocols (for example, you might want one server
to be able to handle different types of interactions depending on the specified protocol).
Closes the WebSocket connection or connection attempt, if any.
If the connection is already closed, this method does nothing.
Closes the WebSocket connection or connection attempt, if any.
If the connection is already closed, this method does nothing.
A numeric value indicating the status code explaining why the connection is being closed.
Closes the WebSocket connection or connection attempt, if any.
If the connection is already closed, this method does nothing.
A numeric value indicating the status code explaining why the connection is being closed.
A human-readable string explaining why the connection is closing. This string
must be no longer than 123 bytes of UTF-8 text (not characters).
Transmits data to the server over the WebSocket connection.
A text string to send to the server.
Transmits data to the server over the WebSocket connection.
A Blob to send to the server.
Transmits data to the server over the WebSocket connection.
An ArrayBuffer to send to the server.
An event handler property for handling socket connection event.
An event handler property for handling socket closing event.
An event handler property for handling incoming message event.
An event handler property for handling socket error event.
The current state of the connection.
The type of binary data being transmitted by the connection.
The number of bytes of data that have been queued using calls to Send() but not yet
transmitted to the network. This value does not reset to zero when the connection is closed;
if you keep calling Send(), this will continue to climb.
The extensions selected by the server.
A string indicating the name of the sub-protocol the server selected;
this will be one of the strings specified in the protocols parameter of constructor.
The URL as resolved by the constructor. This is always an absolute URL.
The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window.
This read-only property indicates whether the referenced window is closed or not.
Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called.
Returns a reference to the document that the window contains.
Returns the element (such as <iframe> or <object>) in which the window is embedded, or null if the window is top-level.
Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
Returns a reference to the history objectt, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
Width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar.
Returns the number of frames in the window.
The Window.location read-only property returns a Location object with information about the current location of the document.
Returns the locationbar object, whose visibility can be checked.
Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
Returns the menubar object, whose visibility can be toggled in the window.
Gets/sets the name of the window.
The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have names.
The Window.navigator read-only property returns a reference to the Navigator object, which can be queried for information about the application running the script.
Returns a reference to the window that opened this current window.
Gets the height of the outside of the browser window.
Gets the width of the outside of the browser window.
An alias for window.scrollX.
An alias for window.scrollY.
Returns a reference to the parent of the current window or subframe.
Provides a hosting area for performance related attributes.
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
Returns a reference to the screen object associated with the window.
The screen object is a special object for inspecting properties of the screen on which the current window is being rendered.
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
Returns the vertical distance of the top border of the user's browser from the top side of the screen.
Returns the scrollbars object, whose visibility can be toggled in the window.
Returns the number of pixels that the document has already been scrolled horizontally.
Returns the number of pixels that the document has already been scrolled vertically.
Returns an object reference to the window object itself.
A storage object for storing data within a single page session.
Gets/sets the text in the statusbar at the bottom of the browser.
Returns the statusbar object, whose visibility can be toggled in the window.
Returns a reference to the topmost window in the window hierarchy. This property is read only.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The Window.alert() method displays an alert dialog with the optional specified content and an OK button.
The Window.alert() method displays an alert dialog with the optional specified content and an OK button.
message is an optional string of text you want to display in the alert dialog, or, alternatively, an object that is converted into a string and displayed.
The Window.atob()decodes a string of data which has been encoded using base-64 encoding. You can use the window.btoa() method to encode and transmit data which may otherwise cause communication problems, then transmit it and use the window.atob() method to decode the data again. For example, you can encode, transmit, and decode control characters such as ASCII values 0 through 31.
encoded string
Returns the window to the previous item in the history.
Shifts focus away from the window.
Creates a base-64 encoded ASCII string from a "string" of binary data.
You can use this method to encode data which may otherwise cause communication problems, transmit it, then use the window.atob method to decode the data again. For example, you can encode control characters such as ASCII values 0 through 31.
String to encode
Cancels an animation frame request previously scheduled through a call to window.requestAnimationFrame().
The ID value returned by the call to window.requestAnimationFrame() that requested the callback.
Cancels repeated action which was set up using setInterval.
intervalID is the identifier of the repeated action you want to cancel. This ID is returned from setInterval().
Clears the delay set by window.setTimeout().
timeoutID is the ID of the timeout you wish to clear, as returned by window.setTimeout().
Closes the current window, or a referenced window.
This method is only allowed to be called for windows that were opened by a script using the window.open method. If the window was not opened by a script, the following error appears in the JavaScript Console: Scripts may not close windows that were not opened by script.
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
result is a boolean value indicating whether OK or Cancel was selected (true means OK).
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
message is the optional string to be displayed in the dialog.
result is a boolean value indicating whether OK or Cancel was selected (true means OK).
Dispatches the specified event to the current element.
To create an event object use the createEvent method in Firefox, Opera, Google Chrome, Safari and Internet Explorer from version 9. After the new event is created, initialize it first (for details, see the page for the createEvent method). When the event is initialized, it is ready for dispatching.
Required. Reference to an event object to be dispatched.
Boolean that indicates whether the default action of the event was not canceled.
Prints messages to the (native) console.
message is the string message to log.
Finds a string in a window.
The text string for which to search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
The text string for which to search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
Boolean. If true, specifies a search in frames.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
Boolean. If true, specifies a search in frames.
Boolean. If true, specifies a show Dialog.
true if the string is found; otherwise, false.
Makes a request to bring the window to the front. It may fail due to user settings and the window isn't guaranteed to be frontmost before this method returns.
Moves the window one document forward in the history.
The Window.getComputedStyle() method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain
The Element for which to get the computed style.
The returned style is a CSSStyleDeclaration object.
The Window.getComputedStyle() method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain
The Element for which to get the computed style.
A string specifying the pseudo-element to match. Must be omitted (or null) for regular elements.
The returned style is a CSSStyleDeclaration object.
getDefaultComputedStyle() gives the default computed values of all the CSS properties of an element, ignoring author styling. That is, only user-agent and user styles are taken into account.
The Element for which to get the computed style.
The returned style is a CSSStyleDeclaration object.
getDefaultComputedStyle() gives the default computed values of all the CSS properties of an element, ignoring author styling. That is, only user-agent and user styles are taken into account.
The Element for which to get the computed style.
A string specifying the pseudo-element to match. Must be null (or not specified) for regular elements.
The returned style is a CSSStyleDeclaration object.
Returns a selection object representing the range of text selected by the user.
selection is a Selection object. When cast to string, either by adding empty quotes "" or using .toString, this object is the text selected.
Returns the window to the home page.
Returns a new MediaQueryList object representing the parsed results of the specified media query string.
string representing the media query for which to return a new MediaQueryList object.
Moves the current window by a specified amount.
the amount of pixels to move the window horizontally.
the amount of pixels to move the window vertically.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is an integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is an integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is a int integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
The arguments to be passed to the new window (optional).
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The window.postMessage method safely enables cross-origin communication.
Data to be sent to the other window.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
The window.postMessage method safely enables cross-origin communication.
Data to be sent to the other window.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
Is a sequence of Transferable objects that are transferred with the message.
Opens the Print Dialog to print the current document.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string containing the text entered by the user, or the value null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
string containing the text entered by the user, or the value null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.
string containing the text entered by the user, or the value null.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Resizes the current window by a certain amount.
the number of pixels to grow the window horizontally.
the number of pixels to grow the window vertically.
Dynamically resizes window.
integer representing the new outerWidth in pixels (including scroll bars, title bars, etc).
integer value representing the new outerHeight in pixels (including scroll bars, title bars, etc).
Scrolls the window to a particular place in the document.
the pixel along the horizontal axis of the document that you want displayed in the upper left.
the pixel along the vertical axis of the document that you want displayed in the upper left.
Scrolls the document in the window by the given amount.
X is the offset in pixels to scroll horizontally.
Y is the offset in pixels to scroll vertically.
Scrolls the document by the given number of lines.
the number of lines to scroll the document by.
Scrolls the current document by the specified number of pages.
the number of pages to scroll.
Scrolls to a particular set of coordinates in the document.
the pixel along the horizontal axis of the document that you want displayed in the upper left.
the pixel along the vertical axis of the document that you want displayed in the upper left.
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
a variant, indicating the returnValue property as set by the window of the document specified by uri.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
an optional variant that contains values that should be passed to the dialog box; these are made available in the window object's window.dialogArguments property.
a variant, indicating the returnValue property as set by the window of the document specified by uri.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
an optional variant that contains values that should be passed to the dialog box; these are made available in the window object's window.dialogArguments property.
an optional string that specifies window ornamentation for the dialog box, using one or more semicolon delimited values:
a variant, indicating the returnValue property as set by the window of the document specified by uri.
Sizes the window according to its content.
This method stops window loading.
Updates the state of commands of the current chrome window (UI).
a particular string which describes what kind of update event this is (e.g. whether we are in bold right now).
An event handler property for abort events on the window
An event handler property for before-unload events on the window
An event handler property for blur events on the window
An event handler property for change events on the window
An event handler property for click events on the window
An event handler property for handling the window close event
An event handler property for right-click events on the window
An event handler property for any ambient light levels changes
FIXME: NeedsContents
An event handler property for any device orientation changes
An event handler property for device proximity event
An event handler property for drag and drop events on the window
An event handler property for errors raised on the window
An event handler property for focus events on the window
An event handler property for hash change events on the window; called when the part of the URL after the hash mark ("#") changes
An event handler property for keydown events on the window
An event handler property for keypress events on the window
An event handler property for keyup events on the window
An event handler property for window loading
An event handler property for mousedown events on the window
An event handler property for mousemove events on the window
An event handler property for mouseout events on the window
An event handler property for mouseover events on the window
An event handler property for mouseup events on the window
An event handler property for paint events on the window
An event handler property for popstate events, which are fired when navigating to a session history entry representing a state object
An event handler property for reset events on the window
An event handler property for window resizing
An event handler property for window scrolling
An event handler property for window selection
An event handler property for submits on window forms
An event handler property for unload events on the window
An event handler property for user proximity events
An event handler property for pageshow events on the window
An event handler property for pagehide events on the window
The global Infinity property is a numeric value representing infinity.
The global NaN property is a value representing Not-A-Number.
The global undefined property represents the value undefined.
The eval() method evaluates JavaScript code represented as a string.
A string representing a JavaScript expression, statement, or sequence of statements. The expression can include variables and properties of existing objects.
The global isFinite() function determines whether the passed value is a finite number. If needed, the parameter is first converted to a number.
The value to be tested for finiteness.
Parses a string argument and returns a floating point number corresponding to double .Net type.
A string that represents the value you want to parse.
Parsed floating point number with type corresponding to double .Net type
The parseInt() function parses a string argument and returns an integer of the specified radix or base.
The value to parse. If string is not a string, then it is converted to one. Leading whitespace in the string is ignored.
The parseInt() function parses a string argument and returns an integer of the specified radix or base.
The value to parse. If string is not a string, then it is converted to one. Leading whitespace in the string is ignored.
An integer that represents the radix of the above mentioned string. Always specify this parameter to eliminate reader confusion and to guarantee predictable behavior. Different implementations produce different results when a radix is not specified.
The isNaN() function determines whether a value is NaN or not. Be careful, this function is broken. You may be interested in Number.isNaN() as defined in ECMAScript 6 or you can use typeof to determine if the value is Not-A-Number.
The value to be tested.
The decodeURI() function decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine.
A complete, encoded Uniform Resource Identifier.
The decodeURIComponent() method decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine.
An encoded component of a Uniform Resource Identifier.
The encodeURI() method encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).
A complete Uniform Resource Identifier.
The encodeURIComponent() method encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).
A component of a URI.
The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window.
This read-only property indicates whether the referenced window is closed or not.
Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called.
Returns a reference to the document that the window contains.
Returns the element (such as <iframe> or <object>) in which the window is embedded, or null if the window is top-level.
Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
Returns a reference to the history objectt, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
Width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar.
Returns the number of frames in the window.
The Window.location read-only property returns a Location object with information about the current location of the document.
Returns the locationbar object, whose visibility can be checked.
Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
Returns the menubar object, whose visibility can be toggled in the window.
Gets/sets the name of the window.
The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have names.
The Window.navigator read-only property returns a reference to the Navigator object, which can be queried for information about the application running the script.
Returns a reference to the window that opened this current window.
Gets the height of the outside of the browser window.
Gets the width of the outside of the browser window.
An alias for window.scrollX.
An alias for window.scrollY.
Returns a reference to the parent of the current window or subframe.
Provides a hosting area for performance related attributes.
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
Returns a reference to the screen object associated with the window.
The screen object is a special object for inspecting properties of the screen on which the current window is being rendered.
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
Returns the vertical distance of the top border of the user's browser from the top side of the screen.
Returns the scrollbars object, whose visibility can be toggled in the window.
Returns the number of pixels that the document has already been scrolled horizontally.
Returns the number of pixels that the document has already been scrolled vertically.
Returns an object reference to the window object itself.
A storage object for storing data within a single page session.
Gets/sets the text in the statusbar at the bottom of the browser.
Returns the statusbar object, whose visibility can be toggled in the window.
Returns a reference to the topmost window in the window hierarchy. This property is read only.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events.
A string representing the event type to listen for.
The object that receives a notification when an event of the specified type occurs. This must be an object implementing the EventListener interface, or simply a JavaScript function.
The Window.alert() method displays an alert dialog with the optional specified content and an OK button.
message is an optional string of text you want to display in the alert dialog, or, alternatively, an object that is converted into a string and displayed.
The Window.atob()decodes a string of data which has been encoded using base-64 encoding. You can use the window.btoa() method to encode and transmit data which may otherwise cause communication problems, then transmit it and use the window.atob() method to decode the data again. For example, you can encode, transmit, and decode control characters such as ASCII values 0 through 31.
encoded string
Returns the window to the previous item in the history.
Shifts focus away from the window.
Creates a base-64 encoded ASCII string from a "string" of binary data.
You can use this method to encode data which may otherwise cause communication problems, transmit it, then use the window.atob method to decode the data again. For example, you can encode control characters such as ASCII values 0 through 31.
String to encode
Cancels an animation frame request previously scheduled through a call to window.requestAnimationFrame().
The ID value returned by the call to window.requestAnimationFrame() that requested the callback.
Cancels repeated action which was set up using setInterval.
intervalID is the identifier of the repeated action you want to cancel. This ID is returned from setInterval().
Clears the delay set by window.setTimeout().
timeoutID is the ID of the timeout you wish to clear, as returned by window.setTimeout().
Closes the current window, or a referenced window.
This method is only allowed to be called for windows that were opened by a script using the window.open method. If the window was not opened by a script, the following error appears in the JavaScript Console: Scripts may not close windows that were not opened by script.
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
message is the optional string to be displayed in the dialog.
result is a boolean value indicating whether OK or Cancel was selected (true means OK).
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
result is a boolean value indicating whether OK or Cancel was selected (true means OK).
Dispatches the specified event to the current element.
To create an event object use the createEvent method in Firefox, Opera, Google Chrome, Safari and Internet Explorer from version 9. After the new event is created, initialize it first (for details, see the page for the createEvent method). When the event is initialized, it is ready for dispatching.
Required. Reference to an event object to be dispatched.
Boolean that indicates whether the default action of the event was not canceled.
Prints messages to the (native) console.
message is the string message to log.
Finds a string in a window.
The text string for which to search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
The text string for which to search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
Boolean. If true, specifies a search in frames.
true if the string is found; otherwise, false.
Finds a string in a window.
The text string for which to search.
Boolean value. If true, specifies a case-sensitive search.
Boolean. If true, specifies a backward search.
Boolean. If true, specifies a wrap around search.
Boolean. If true, specifies a whole word search.
Boolean. If true, specifies a search in frames.
Boolean. If true, specifies a show Dialog.
true if the string is found; otherwise, false.
Makes a request to bring the window to the front. It may fail due to user settings and the window isn't guaranteed to be frontmost before this method returns.
Moves the window one document forward in the history.
The Window.getComputedStyle() method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain
The Element for which to get the computed style.
The returned style is a CSSStyleDeclaration object.
The Window.getComputedStyle() method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain
The Element for which to get the computed style.
A string specifying the pseudo-element to match. Must be omitted (or null) for regular elements.
The returned style is a CSSStyleDeclaration object.
getDefaultComputedStyle() gives the default computed values of all the CSS properties of an element, ignoring author styling. That is, only user-agent and user styles are taken into account.
The Element for which to get the computed style.
The returned style is a CSSStyleDeclaration object.
getDefaultComputedStyle() gives the default computed values of all the CSS properties of an element, ignoring author styling. That is, only user-agent and user styles are taken into account.
The Element for which to get the computed style.
A string specifying the pseudo-element to match. Must be null (or not specified) for regular elements.
The returned style is a CSSStyleDeclaration object.
Returns a selection object representing the range of text selected by the user.
selection is a Selection object. When cast to string, either by adding empty quotes "" or using .toString, this object is the text selected.
Returns the window to the home page.
Returns a new MediaQueryList object representing the parsed results of the specified media query string.
string representing the media query for which to return a new MediaQueryList object.
Moves the current window by a specified amount.
the amount of pixels to move the window horizontally.
the amount of pixels to move the window vertically.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is a long integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.
A parameter specifying a function to call when it's time to update your animation for the next repaint. The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time for when requestAnimationFrame starts to fire callbacks.
requestID is a long integer value that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame() to cancel the refresh callback request.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
window.openDialog is an extension to window.open. It behaves the same, except that it can optionally take one or more parameters past windowFeatures, and windowFeatures itself is treated a little differently.
The URL to be loaded in the newly opened window. strUrl can be an HTML document on the web, image file or any resource supported by the browser.
A string name for the new window. The name can be used as the target of links and forms using the target attribute of an <a> or <form> element. The name should not contain any blank space. Note that strWindowName does not specify the title of the new window.
Optional parameter listing the features (size, position, scrollbars, etc.) of the new window. The string must not contain any blank space, each feature name and value must be separated by a comma.
The arguments to be passed to the new window (optional).
A reference to the newly created window. If the call failed, it will be null. The reference can be used to access properties and methods of the new window provided it complies with Same origin policy security requirements.
The window.postMessage method safely enables cross-origin communication.
Data to be sent to the other window.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
The window.postMessage method safely enables cross-origin communication.
Data to be sent to the other window.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI.
Is a sequence of Transferable objects that are transferred with the message.
Opens the Print Dialog to print the current document.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string containing the text entered by the user, or the value null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
string containing the text entered by the user, or the value null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.
string containing the text entered by the user, or the value null.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Removes the event listener previously registered with EventTarget.addEventListener.
A string representing the event type being removed.
The listener parameter indicates the EventListener function to be removed.
Specifies whether the EventListener being removed was registered as a capturing listener or not. If not specified, useCapture defaults to false.
Resizes the current window by a certain amount.
the number of pixels to grow the window horizontally.
the number of pixels to grow the window vertically.
Dynamically resizes window.
integer representing the new outerWidth in pixels (including scroll bars, title bars, etc).
integer value representing the new outerHeight in pixels (including scroll bars, title bars, etc).
Scrolls the window to a particular place in the document.
the pixel along the horizontal axis of the document that you want displayed in the upper left.
the pixel along the vertical axis of the document that you want displayed in the upper left.
Scrolls the document in the window by the given amount.
X is the offset in pixels to scroll horizontally.
Y is the offset in pixels to scroll vertically.
Scrolls the document by the given number of lines.
the number of lines to scroll the document by.
Scrolls the current document by the specified number of pages.
the number of pages to scroll.
Scrolls to a particular set of coordinates in the document.
the pixel along the horizontal axis of the document that you want displayed in the upper left.
the pixel along the vertical axis of the document that you want displayed in the upper left.
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function.
the function you want to be called repeatedly.
the number of milliseconds (thousandths of a second) that the setInterval() function should wait before each call to func.
a unique interval ID you can pass to clearInterval().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
Calls a function or executes a code snippet after a specified delay.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by. The actual delay may be longer;
the numerical ID of the timeout, which can be used later with window.clearTimeout().
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
a variant, indicating the returnValue property as set by the window of the document specified by uri.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
an optional variant that contains values that should be passed to the dialog box; these are made available in the window object's window.dialogArguments property.
a variant, indicating the returnValue property as set by the window of the document specified by uri.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
the URI of the document to display in the dialog box.
an optional variant that contains values that should be passed to the dialog box; these are made available in the window object's window.dialogArguments property.
an optional string that specifies window ornamentation for the dialog box, using one or more semicolon delimited values:
a variant, indicating the returnValue property as set by the window of the document specified by uri.
Sizes the window according to its content.
This method stops window loading.
Updates the state of commands of the current chrome window (UI).
a particular string which describes what kind of update event this is (e.g. whether we are in bold right now).
An event handler property for abort events on the window
An event handler property for before-unload events on the window
An event handler property for blur events on the window
An event handler property for change events on the window
An event handler property for click events on the window
An event handler property for handling the window close event
An event handler property for right-click events on the window
An event handler property for any ambient light levels changes
FIXME: NeedsContents
An event handler property for any device orientation changes
An event handler property for device proximity event
An event handler property for drag and drop events on the window
An event handler property for errors raised on the window
An event handler property for focus events on the window
An event handler property for hash change events on the window; called when the part of the URL after the hash mark ("#") changes
An event handler property for keydown events on the window
An event handler property for keypress events on the window
An event handler property for keyup events on the window
An event handler property for window loading
An event handler property for mousedown events on the window
An event handler property for mousemove events on the window
An event handler property for mouseout events on the window
An event handler property for mouseover events on the window
An event handler property for mouseup events on the window
An event handler property for paint events on the window
An event handler property for popstate events, which are fired when navigating to a session history entry representing a state object
An event handler property for reset events on the window
An event handler property for window resizing
An event handler property for window scrolling
An event handler property for window selection
An event handler property for submits on window forms
An event handler property for unload events on the window
An event handler property for user proximity events
An event handler property for pageshow events on the window
An event handler property for pagehide events on the window
The EvalError object indicates an error regarding the global eval() function.
The RangeError object indicates an error when a value is not in the set or range of allowed values.
The ReferenceError object represents an error when a non-existent variable is referenced.
The SyntaxError object represents an error when trying to interpret syntactically invalid code.
The TypeError object represents an error when a value is not of the expected type.
The URIError object represents an error when a global URI handling function was used in a wrong way.