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 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 | 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 (theelement) | 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() |
Creates an attribute node | Document |
createComment() |
Creates a Comment node with the specified text | Document |
createDocumentFragment() |
Creates an empty DocumentFragment node | Document |
createElement() |
Creates an Element node | Document |
createEvent() |
Creates a new event | Document, Event |
createTextNode() |
Creates a Text node | Document |
ctrlKey |
Returns whether the "CTRL" key was pressed when the mouse event was triggered | MouseEvent, KeyboardEvent, TouchEvent |
currentTarget |
Returns the element whose event listeners triggered the event | Event |
data |
Returns the inserted characters | InputEvent |
dataTransfer |
Returns an object containing the data being dragged/dropped, or inserted/deleted | DragEvent, InputEvent |
debugger |
Stops the execution of JavaScript, and calls (if available) the debugging function | Statements |
decodeURI() |
Decodes a URI | Global |
decodeURIComponent() |
Decodes a URI component | Global |
defaultPrevented |
Returns whether or not the preventDefault() method was called for the event | Event |
defaultStatus |
Sets or returns the default text in the statusbar of a window | Window |
defaultView |
Returns the window object associated with a document, or null if none is available. | Document |
delete |
Deletes a property from an object | Operators |
deltaX |
Returns the horizontal scroll amount of a mouse wheel (x-axis) | WheelEvent |
deltaY |
Returns the vertical scroll amount of a mouse wheel (y-axis) | WheelEvent |
deltaZ |
Returns the scroll amount of a mouse wheel for the z-axis | WheelEvent |
deltaMode |
Returns a number that represents the unit of measurements for delta values (pixels, lines or pages) | WheelEvent |
designMode |
Controls whether the entire document should be editable or not. | Document |
detail |
Returns a number that indicates how many times the mouse was clicked | UiEvent |
do ... while |
Executes a block of statements and repeats the block while a condition is true | Statements |
doctype |
Returns the Document Type Declaration associated with the document | Document |
document |
Returns the Document object for the window (See Document object) | Window |
documentElement |
Returns the Document Element of the document (theelement) | Document |
documentMode |
Returns the mode used by the browser to render the document | Document |
documentURI |
Sets or returns the location of the document | Document |
domain |
Returns the domain name of the server that loaded the document | Document |
domConfig |
Obsolete. Returns the DOM configuration of the document | Document |
elapsedTime |
Returns the number of seconds an animation has been running | AnimationEvent |
elapsedTime |
Returns the number of seconds a transition has been running | � |
embeds |
Returns a collection of all elements the document | Document |
encodeURI() |
Encodes a URI | Global |
encodeURIComponent() |
Encodes a URI component | Global |
E |
Returns Euler's number (approx. 2.718) | Math |
endsWith() |
Checks whether a string ends with specified string/characters | String |
entries() |
Returns a key/value pair Array Iteration Object | Array |
error() |
Outputs an error message to the console | Console |
escape() |
Deprecated in version 1.5. Use encodeURI() or encodeURIComponent() instead | Global |
eval() |
Evaluates a string and executes it as if it was script code | Global |
eventPhase |
Returns which phase of the event flow is currently being evaluated | Event |
every() |
Checks if every element in an array pass a test | Array |
exec() |
Tests for a match in a string. Returns the first match | RegExp |
execCommand() |
Invokes the specified clipboard operation on the element currently having focus. | Document |
exitFullscreen() |
Cancels an element in fullscreen mode | Element |
exp(x) |
Returns the value of Ex | Math |
expm1(x) |
Returns the value of Ex minus 1 | Math |
export |
Export functions so they can be used for imports in external modules, and other scripts | |
extends |
Extends a class (inherit) | Classes |
dir |
Sets or returns the value of the dir attribute of an element | Element |
dir |
Sets or returns the value of the dir attribute of an element | Element |
fill() |
Fill the elements in an array with a static value | Array |
filter() |
Creates a new array with every element in an array that pass a test | Array |
find() |
Returns the value of the first element in an array that pass a test | Array |
findIndex() |
Returns the index of the first element in an array that pass a test | Array |
floor() |
Returns x, rounded downwards to the nearest integer | Math |
focus() |
Gives focus to an element | Element, Window |
for |
Marks a block of statements to be executed as long as a condition is true | Statements |
for ... in |
Marks a block of statements to be executed for each element of an object (or array) | Statements |
forEach() |
Calls a function for each array element | Array |
forms |
Returns a collection of all | Document |
forward() |
Loads the next URL in the history list | History |
frameElement |
Returns the |