Property/Method |
Description |
Belongs To |
abs() |
Returns the absolute value of x |
Math |
accessKey |
Sets or returns the accesskey attribute of an element |
Element |
acos() |
Returns the arccosine of x, in radians |
Math |
acosh() |
Returns the hyperbolic arccosine of x |
Math |
activeElement |
Returns the currently focused element in the document |
Document |
addEventListener() |
Attaches an event handler to the document |
Document, Element |
adoptNode() |
Adopts a node from another document |
Document |
alert() |
Displays an alert box with a message and an OK button |
Window |
altKey |
Returns whether the "ALT" key was pressed when the mouse event was triggered |
MouseEvent, KeyboardEvent,
TouchEvent
|
anchors |
Returns a collection of all <a> elements in the document that have a name attribute |
Document |
animationName |
Returns the name of the animation |
AnimationEvent |
appCodeName |
Returns the code name of the browser |
Navigator |
appendChild() |
Adds a new child node, to an element, as the last child node |
Element |
applets |
Returns a collection of all <applet> elements in the document |
Document |
appName |
Returns the name of the browser |
Navigator |
appVersion |
Returns the version information of the browser |
Navigator |
asin() |
Returns the arcsine of x, in radians |
Math |
asinh() |
Returns the hyperbolic arcsine of x |
Math |
assert() |
Writes an error message to the console if the assertion is false |
Console |
assign() |
Loads a new document |
Location |
atan() |
Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians |
Math |
atan2() |
Returns the arctangent of the quotient of its arguments |
Math |
atanh() |
Returns the hyperbolic arctangent of x |
Math |
atob() |
Decodes a base-64 encoded string |
Window |
attributes |
Returns a NamedNodeMap of an element's attributes |
Element |
availHeight |
Returns the height of the screen (excluding the Windows Taskbar) |
Screen |
availWidth |
Returns the width of the screen (excluding the Windows Taskbar) |
Screen |
back() |
Loads the previous URL in the history list |
History |
baseURI |
Returns the absolute base URI of a document |
Document |
blur() |
Removes focus from an element |
Element, Window |
body |
Sets or returns the document's body (the <body> element) |
Document |
break |
Exits a switch or a loop |
Statements |
btoa() |
Encodes a string in base-64 |
Window |
bubbles |
Returns whether or not a specific event is a bubbling event |
Event |
button |
Returns which mouse button was pressed when the mouse event was triggered |
MouseEvent |
buttons |
Returns which mouse buttons were pressed when the mouse event was triggered |
MouseEvent |
cancelable |
Returns whether or not an event can have its default action prevented |
Event |
cbrt() |
Returns the cubic root of x |
Math |
ceil() |
Returns x, rounded upwards to the nearest integer |
Math |
changeTouches |
Returns a list of all the touch objects whose state changed between the
previous touch and this touch |
TouchEvent |
characterSet |
Returns the character encoding for the document |
Document |
charAt() |
Returns the character at the specified index (position) |
String |
charCode |
Returns the Unicode character code of the key that triggered the onkeypress event |
KeyboardEvent |
charCodeAt() |
Returns the Unicode of the character at the specified index |
String |
charset |
Deprecated. Use characterSet instead. Returns the character encoding for
the document |
Document |
childElementCount |
Returns the number of child elements an element has |
Element |
childNodes |
Returns a collection of an element's child nodes (including text and comment nodes) |
Element |
children |
Returns a collection of an element's child element (excluding text and comment nodes) |
Element |
classList |
Returns the class name(s) of an element |
Element |
class |
Declares a class |
Statements |
className |
Sets or returns the value of the class attribute of an element |
Element |
clear() |
Clears the console |
Console, Storage |
clearInterval() |
Clears a timer set with setInterval() |
Window |
clearTimeout() |
Clears a timer set with setTimeout() |
Window |
clearWatch() |
Unregister location/error monitoring handlers previously installed using
Geolocation.watchPosition() |
Geolocation |
click() |
Simulates a mouse-click on an element |
Element |
clientHeight |
Returns the height of an element, including padding |
Element |
clientLeft |
Returns the width of the left border of an element |
Element |
clientTop |
Returns the width of the top border of an element |
Element |
clientWidth |
Returns the width of an element, including padding |
Element |
clientX |
Returns the horizontal coordinate of the mouse pointer, relative to the current window, when the mouse
event was triggered |
MouseEvent,
TouchEvent
|
clientY |
Returns the vertical coordinate of the mouse pointer, relative to the current window, when the mouse
event was triggered |
MouseEvent,
TouchEvent
|
clipboardData |
Returns an object containing the data affected by the clipboard
operation |
ClipboardData |
closed |
Returns a Boolean value indicating whether a window has been closed or not |
Window |
close() |
Closes the output stream previously opened with document.open() |
Document, Window |
closest() |
Searches up the DOM tree for the closest element which matches a specified CSS selector |
Element |
clz32(x) |
Returns the number of leading zeros in a 32-bit binary representation of x |
Math |
code |
Returns the code of the key that triggered the event |
KeyboardEvent |
colorDepth |
Returns the bit depth of the color palette for displaying images |
Screen |
compareDocumentPosition() |
Compares the document position of two elements |
Element |
compile() |
Deprecated in version 1.5. Compiles a regular expression |
RegExp |
composed |
Returns whether the event is composed or not |
Event |
concat() |
Joins two or more arrays, and returns a copy of the joined arrays |
Array, String |
confirm() |
Displays a dialog box with a message and an OK and a Cancel button |
Window |
const |
Declares a variable with a constant value |
Statements |
constructor() |
Creates and initialize objects created within a class |
Classes |
constructor |
Returns the function that created the Array object's prototype |
Array, Boolean, Date, Number, RegExp |
contains() |
Returns true if a node is a descendant of a node, otherwise false |
Element |
contentEditable |
Sets or returns whether the content of an element is editable or not |
Element |
continue |
Breaks one iteration (in the loop) if a specified condition occurs, and
continues with the next iteration in the loop |
Statements |
console |
Returns a reference to the Console object, which provides methods for logging information to the
browser's console (See Console object) |
Window |
cookie |
Returns all name/value pairs of cookies in the document |
Document |
cookieEnabled |
Determines whether cookies are enabled in the browser |
Navigator |
coordinates |
Returns the position and altitude of the device on Earth |
Geolocation |
copyWithin() |
Copies array elements within the array, to and from specified positions |
Array |
cos(x) |
Returns the cosine of x (x is in radians) |
Math |
cosh(x) |
Returns the hyperbolic cosine of x |
Math |
count() |
Logs the number of times that this particular call to count() has been
called |
Console |
createAttribute() |
C |