Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST TOOLS

Basic JavaScript

JS Tutorial JS Introduction JS Where To JS Output

JS Syntax

JS Syntax JS Statements JS Comments JS Variables JS Let JS Const JS Types

JS Operators

JS Operators

JS If Else

JS If Conditions

JS Loops

JS Loops

JS Strings

JS Strings

JS Numbers

JS Numbers

JS Functions

JS Functions

JS Objects

JS Objects

JS Scope

JS Scope

JS Dates

JS Dates

JS Temporal

JS Temporal  New

JS Arrays

JS Arrays

JS Sets

JS Sets

JS Maps

JS Maps

JS Iterations

JS Loops

JS Math

JS Math

JS RegExp

JS RegExp

JS DataTypes

JS Data Types

JS Errors

JS Errors

JS Debugging

JS Debugging

JS Conventions

JS Style Guide

JS Reference

JS Reference

JS Projects

JS Projects New

JS Versions

JS 2026

JS HTML

JS HTML DOM JS Events

JS Advanced

JS Functions JS Objects JS Classes JS Asynchronous JS Modules JS Meta & Proxy JS Typed Arrays JS DOM Navigation JS Windows JS Web APIs JS AJAX JS JSON JS jQuery JS Graphics JS Examples JS Reference


JavaScript Alphabetical Reference


Property/Method Description Belongs To
abs() Returns the absolute value of x Math
abs() Returns a Duration with the absolute value of a Duration Duration
accessKey Sets or returns the accesskey attribute of an element HTML 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 HTML Document
add() Returns a Duration with a Duration added Duration
add() Returns an Instant with a Duration added Instant
add() Returns a PlainDate with a Duration added PlainDate
add() Returns a PlainDateTime with a Duration added PlainDateTime
add() Returns a PlainTime with a Duration added PlainTime
add() Returns a PlainYearMonth with a Duration added PlainYearMonth
add() Adds a new element to a det Set
add() Adds a Duration to a ZonedDateTime ZonedDateTime
add() Adds one (or more) tokens to a DOMTokenList DOMTokenList
addEventListener() Attaches an event handler to the document HTML Document
HTML Element
adoptNode() Adopts a node from another document HTML Document
after() Inserts one or more nodes (elements) or strings after an element HTML Element
alert() Displays an alert box with a message and an OK button Window Object
all() Returns a single Promise from a list of promises, when all promises fulfill Promise
allSettled() Returns a single Promise from a list of promises, when all promises are settled Promise
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 HTML Document
animationName Returns the name of the animation AnimationEvent
any() Returns a single Promise from a list of promises, when any promise fulfills Promise
appCodeName Returns the code name of the browser Navigator
append() Appends one or several nodes (element) or strings after the the last child of an element HTML Element
appendChild() Adds a new child node, to an element, as the last child node HTML Element
applets Returns a collection of all <applet> elements in the document HTML Document
apply() Calls a function with a given this value Function
apply() A trap for the [[Call]] internal method Proxy
apply() Calls a function with arguments Reflect
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 Window Object
assign() Copies properties from an object(s) to a target object Objects
at() Returns an indexed element from an array Array
at() Returns an indexed element from a string String
at() Returns an indexed element from a typed array Typed Array
addEventlistener() Attaches an event handler to a window Window Object
addEventListener() Attaches an event handler to an element HTML Elements
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 Object
attributes Returns a NamedNodeMap of an element's attributes HTML 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 HTML Document
before() Inserts nodes (elements) immediately before an element HTML Element
BigInt64Array Typed array of 64-bit signed integers Typed Arrays
BigUint64Array Typed array of 64-bit un signed integers Typed Arrays
bind() Returns a new Function with a specific value of this Function
blur() Removes focus from an element HTML Element
blur() Removes focus from a window Window Object
body Sets or returns the document's body (the <body> element) HTML Document
Boolean() Returns a Boolean Boolean
break Exits a switch or a loop Statements
btoa() Encodes a string in base-64 Window Object
bubbles Returns whether or not a specific event is a bubbling event Event
button Returns which mouse button was pressed MouseEvent
buttons Returns which mouse buttons were pressed MouseEvent
byteLength Returns the length (in bytes) of a typed array Typed Array
byteOffset Returns the offset of a typed array from the start of its ArrayBuffer Typed Array
bytesPerElement Returns the number of bytes used per element in a typed array Typed Array
cancelable Returns whether or not an event can have its default action prevented Event
call() Calls a function with a given this value Function
catch() A callback function to run when a promise is rejected Promise
cause Sets or Returns the cause of an error Error
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 HTML 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.
HTML Document
childElementCount Returns the number of child elements an element has HTML Element
childNodes Returns a collection of an element's child nodes (including text and comment nodes) HTML Element
children Returns a collection of an element's child element (excluding text and comment nodes) HTML Element
classList Returns the class name(s) of an element HTML Element
class Declares a class Statements
className Sets or returns the value of the class attribute of an element HTML Element
clear() Clears the console Console
clear() Clears (removes) all storage objects for this domain API Storage
clear() Clears (removes) all elements from a map Maps
clear() Clears (removes) all elements from a set Set
clearInterval() Clears a timer set with setInterval() Window Object
clearTimeout() Clears a timer set with setTimeout() Window Object
clearWatch() Unregister location/error monitoring handlers previously installed using Geolocation.watchPosition() Geolocation
click() Simulates a mouse-click on an element HTML Element
clientHeight Returns the height of an element, including padding HTML Element
clientLeft Returns the width of the left border of an element HTML Element
clientTop Returns the width of the top border of an element HTML Element
clientWidth Returns the width of an element, including padding HTML 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
cloneNode() Creates a copy of a node, and returns the clone HTML Element
closed Returns a boolean value indicating whether a window has been closed or not Window Object
close() Closes a document HTML Document
close() Closes a window Window Object
closest() Searches up the DOM tree for the closest element which matches a specified CSS selector HTML 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
codePointAt() Returns the Unicode value at an index (position) in a string String
colorDepth Returns the bit depth of the color palette for displaying images Screen
compare
DocumentPosition()
Compares the document position of two elements HTML Element
compare() Returns -1, 0, or 1 if a Duration is less than, equal, or grater than another Duration
compare() Returns -1, 0, or 1 if an Instant is before, equal, or later than another Instant
compare() Returns -1, 0, or 1 if a PlainDate is before, equal, or later than another PlainDate
compare() Returns -1, 0, or 1 if a PlainDateTime is before, equal, or later than another PlainDateTime
compare() Returns -1, 0, or 1 if a PlainTime is before, equal, or later than another PlainTime
compare() Returns -1, 0, or 1 if a PlainYearMonth is before, equal, or later than another PlainYearMonth
compare() Returns -1, 0, or 1 if a ZonedDateTime is before, equal, or later than another ZonedDateTime
compile() Deprecated. Compiles a regular expression RegExp
composed Returns whether the event is composed or not Event
concat() Returns two or more joined arrays Array
concat() Returns two or more joined strings String
confirm() Displays a dialog box with a message and an OK and a Cancel button Window Object
const Declares a variable with a constant value Statements
construct() Traps the new operator Proxy
construct() Constructs a new object (acts like the new operator) Reflect
constructor() Creates and initialize objects created within a class Array
Classes
constructor Returns the function that created the Array prototype Array
constructor Returns the function that created the Boolean prototype Boolean
constructor Returns the function that created the Date prototype Date
constructor Returns the function that created the Number prototype Number
constructor Returns the function that created the Object prototype Object
constructor Returns the function that created the RegExp prototype RegExp
constructor Returns the function that created the String prototype String
contains() Returns true if a node is a descendant of a node HTML Element
contains() true if a DOMTokenList contains a class HTML DOMTokenList
contentEditable Sets or returns whether the content of an element is editable or not HTML 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 Window Object
cookie Returns all name/value pairs of cookies in the document HTML 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 to another position in the array Array
copyWithin() Copies typed array elements to another position in the array Typed 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
create() Returns an object created from an existing object Object
createAttribute() Creates an attribute node HTML Document
createComment() Creates a Comment node with the specified text HTML Document
create
DocumentFragment()
Creates an empty DocumentFragment node HTML Document
createElement() Creates an element node HTML Document
createEvent() Creates a new event HTML Document
Event
createTextNode() Creates a Text node HTML 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 Object
defaultView Returns the window object associated with a document, or null if none is available. HTML Document
defineProperties() Adds or changes properties Object
defineProperty() Adds or changes a property Object
defineProperty() Traps defineProperty() Proxy
defineProperty() Defines or modifies a property Reflect
delete Deletes a property from an object Objects
delete() Deletes an element from a map Map
delete() Deletes an element from a set Set
deleteProperty() Traps the delete operator Proxy
deleteProperty() Deletes a property from an object Reflect
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. HTML Document
detail Returns a number that indicates how many times the mouse was clicked Event
difference() Returns the difference between two sets Set
dir Sets or returns the value of the dir attribute of an element HTML Element
dir() Displays a list of the properties of a JavaScript object Window Console
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 HTML Document
document Returns the Document object for the window Window Object
documentElement Returns the Document Element of the document (the <html> element) HTML Document
documentMode Returns the mode used by the browser to render the document HTML Document
documentURI Sets or returns the location of the document HTML Document
domain Returns the domain name of the server that loaded the document HTML Document
dotAll Returns true if the s modifier is set in the expression RegExp
drop() Returns an iterator with a number of elements dropped Iterator
E Returns Euler's number (approx. 2.718) Math
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 <embed> elements the document HTML Document
encodeURI() Encodes a URI Global
encodeURIComponent() Encodes a URI component Global
endsWith() Checks whether a string ends with specified string/characters String
entries() Returns an Iterator with the key/value pairs of an array Array
entries() Returns an Iterator with the key/value pairs of a map Maps
entries() Returns an Iterator with the key/value pairs of an object Objects
entries() Returns an Iterator with the key/value pairs of a det Sets
entries() Returns an Iterator with the key/value pairs of an array Typed Array
entries() Returns an Iterator with the key/value pairs a NodeList NodeList
entries() Returns an Iterator with the key/value pairs of a DOMTokenList DOMTokenList
EPSILON Returns the difference between 1 and the smallest number Number
equals() Returns true if this Instant is equal to another Instant Instant
equals() Returns true if this PlainDate is equal to another PlainDate PlainDate
equals() Returns true if this PlainDateTime is equal to another PlainDateTime
equals() Returns true if this PlainMonthDay is equal to another PlainMonthDay
equals() Returns true if this PlainTime is equal to another PlainTime PlainTime
equals() Returns true if this PlainYearMonth is equal to another PlainYearMonth PlainYearMonth
equals() Returns true if this ZonedDateTime is equal to another ZonedDateTime
error() Outputs an error message to the console Console
escape() Deprecated.Use encodeURI() instead Global
escape() Returns string where all regular expressions are escaped RegExp
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() Returns true if every element in an array pass a test Array
every() Returns true if every element in an Iterator pass a test Iterator
every() Returns true if every element in a Typed Array pass a test Typed 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. HTML Document
exitFullscreen() Cancels an element in fullscreen mode HTML 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
f16round() Returns the nearest 16-bit floating point representation of a number Math
fill() Fills all elements in an array with a value Array
fill() Fills all array elements with a value Typed Array
filter() Creates a new Array with elements that pass a test Array
filter() Creates a new Iterator with elements that pass a test Iterator
filter() Creates a new Typed Array with elements that pass a test Typed Array
finally() A callback function to run when a promise is settled Promise
find() Returns the value of the first element in an array that pass a test Array
find() Returns the value of the first element that passes a test Iterator
find() Returns the value of the first element that passes a test Typed Array
findIndex() Returns the index of the first element in an array that pass a test Array
findIndex() Returns the index of the first element that passes a test Typed Array
findLast() Returns the value of the last element in an array that pass a test Array
findLast() Returns the value of the last element that passes a test Typed Array
findLastIndex() Returns the index of the last element in an array that pass a test Array
findLastIndex() Returns the index of the last element that passes a test Typed Array
firstChild Returns the first child node of a node HTML Element
firstElementChild Returns the first child element of the specified element HTML Element
flags Returns s sting with the flags set in the expression RegExp
flat() Concatenates sub-array elements Array
flatMap() Maps array elements and creates a new flat array Array
flatMap() Maps iterator elements and creates a new flat iterator Iterators
Float16Array Typed array of 16-bit floating point numbers Typed Arrays
Float32Array Typed array of 32-bit floating point numbers Typed Arrays
Float64Array Typed array of 64-bit floating point numbers Typed Arrays
floor() Returns x, rounded downwards to the nearest integer Math
focus() Sets focus to an element HTML Element
focus() Sets focus to a window Window Object
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
forEach() Calls a function for each Iterator element Iterator
forEach() Calls a function for each Map element Map
forEach() Calls a function for each Set element Set
forEach() Calls a function for each Array element Typed Array
forEach() Calls a function for each NodeList element NodeList
forEach() Calls a function for each DOMTokenList element DOMTokenList
forms Returns a collection of all <form> elements in the document HTML Document
forward() Loads the next URL in the history list History
frameElement Returns the <iframe> element of the current window Window Object
frames Returns all <iframe> elements in the current window Window Object
freeze() Prevents any changes to an object Object
from() returns a new Array from an object Array
from() Returns an Iterator from any iterable Iterator
from() Returns a Duration from a Duration or an ISO string Duration
from() Returns a Instant from an ISO string Instant
fromEpochMilliseconds() Returns an Instant object from a number of milliseconds Instant
fromEpochNanoseconds() Returns an Instant object from a number of nanoseconds Instant
from() Returns a PlainDate from an object or an ISO String PlainDate
from() Returns a PlainDateTime from an object or an ISO String PlainDateTime
from() Returns a PlainMonthDay from an object or an ISO String PlainMonthDay
from() Returns a PlainTime from an object or an ISO String PlainTime
from() Returns a PlainYearMonth from an object or an ISO String PlainYearMonth
from() Returns a Typed Array from any Object with a length property Typed Array
from() Returns a ZonedDateTime from an object or an ISO String ZonedDateTime
fromCharCode() Converts Unicode values to characters String
fromEntries() Returns an object created from an iterable list of key/value pairs Object
fround() Returns the nearest (32-bit single precision) float representation of a number Math
fullscreenElement Returns the current element that is displayed in fullscreen mode HTML Document
fullscreenEnabled() Returns a boolean value indicating whether the document can be viewed in fullscreen mode HTML Document
function Declares a function Statements
geolocation Returns a Geolocation object that can be used to locate the user's position Navigator
get() Gets the value of a key in a map Map
get() A trap for the internal [[Get]] method Proxy
get() A trap for the internal [[Get]] method Reflect
getAttribute() Returns the specified attribute value of an element node HTML Element
getAttributeNode() Returns the specified attribute node HTML Element
getBoundingClientRect() Returns the size of an element and its position relative to the viewport HTML Element
getComputedStyle() Gets the current computed CSS styles applied to an element Window Object
getCurrentPosition() Returns the current position of the device Geolocation
getCurrentPosition() Returns the current position of the device API Geolocation
getDate() Returns the day of the month (from 1-31) Date
getDay() Returns the day of the week (from 0-6) Date
getElementById() Returns the element that has the ID attribute with the specified value HTML Document
getElementsBy
ClassName()
Returns a NodeList containing all elements with the specified class name HTML Document
getElementsBy
ClassName()
Returns a collection of all child elements with a given class name HTML Element
getElementsBy
Name()
Returns a NodeList containing all elements with a specified name HTML Document
getElementsBy
TagName()
Returns a NodeList containing all elements with the specified tag name HTML Document
getElementsBy
TagName()
Returns a collection of all child elements with a given tag name HTML Element
getFullYear() Returns the year Date
getHours() Returns the hour (from 0-23) Date
getItem() Returns the value of the specified key name Storage
getMilliseconds() Returns the milliseconds (from 0-999) Date
getMinutes() Returns the minutes (from 0-59) Date
getModifierState() Returns an array containing target ranges that will be affected by the insertion/deletion MouseEvent
getMonth() Returns the month (from 0-11) Date
getNamedItem() Returns a specified attribute node from a NamedNodeMap Attribute
getOwnProperty
Descriptor()
Returns a property descriptor Proxy
getOwnProperty
Descriptor()
Returns a property descriptor Reflect
getOwn
PropertyDescriptor()
Returns the property descriptors of an object Object
getOwn
PropertyDescriptors()
Returns the property descriptors of an object Object
getOwn
PropertyNames()
Returns an array with the properties of an object Object
getPrototypeOf() Returns the prototype of an object Proxy
getPrototypeOf() Returns the prototype of an object Reflect
getSeconds() Returns the seconds (from 0-59) Date
getSelection() Returns a Selection object representing the range of text selected by the user Window Object
getTargetRanges() Returns an array containing target ranges that will be affected by the insertion/deletion InputEvent
getTime() Returns the number of milliseconds since midnight Jan 1 1970, and a specified date Date
getTimezoneOffset() Returns the time difference between UTC time and local time, in minutes Date
getTimeZoneTransition() Returns a ZonedDateTime representing the closest instant after or before the time zone's UTC offset changes. ZonedDateTime
getUTCDate() Returns the day of the month, according to universal time (from 1-31) Date
getUTCDay() Returns the day of the week, according to universal time (from 0-6) Date
getUTCFullYear() Returns the year, according to universal time Date
getUTCHours() Returns the hour, according to universal time (from 0-23) Date
getUTCMilliseconds() Returns the milliseconds, according to universal time (from 0-999) Date
getUTCMinutes() Returns the minutes, according to universal time (from 0-59) Date
getUTCMonth() Returns the month, according to universal time (from 0-11) Date
getUTCSeconds() Returns the seconds, according to universal time (from 0-59) Date
getYear() Deprecated. Use getFullYear() instead Date
global Checks whether the "g" modifier is set RegExp
go() Loads a specific URL from the history list History
group() Creates a new inline group in the console. This indents following console messages by an additional level, until console.groupEnd() is called Console
groupBy() Groups iterable elements using values returned from a function Map
groupBy() Groups iterable elements using string values returned from a function Objects
groupCollapsed() Creates a new inline group in the console. However, the new group is created collapsed. The user will need to use the disclosure button to expand it Console
groupEnd() Exits the current inline group in the console Console
has() Returns true if a key exists in a map Map
has() Intercepts the in operator Proxy
has() Returns true if a property exists in an object Reflect
has() Returns true if a value exists in a det Sets
hasAttribute() Returns true if an element has the specified attribute, otherwise false HTML Element
hasAttributes() Returns true if an element has any attributes, otherwise false HTML Element
hasChildNodes() Returns true if an element has any child nodes, otherwise false HTML Element
hasFocus() Returns a boolean value indicating whether the document has focus HTML Document
hash Sets or returns the anchor part (#) of a URL Window Object
hasIndices Returns true if the "d" modifier is set in the expression RegExp
head Returns the <head> element of the document HTML Document
height Returns the total height of the screen Screen
history Returns the History object for the window Window Object
host Sets or returns the hostname and port number of a URL Window Object
hostname Sets or returns the hostname of a URL Window Object
href Sets or returns the entire URL Window Object
id Sets or returns the value of the id attribute of an element HTML Element
if ... else ... else if Marks a block of statements to be executed depending on a condition Statements
ignoreCase Checks whether the "i" modifier is set RegExp
images Returns a collection of all <img> elements in the document HTML Document
implementation Returns the DOMImplementation object that handles this document HTML Document
importNode() Imports a node from another document HTML Document
in Returns true if a property is in a specified object Operators
includes() Returns true if an array includes a specified value Array
includes() Returns true if a typed array includes a specified value Typed Array
includes() Returns true if a string contains a specified value Strings
indexOf() Returns the position of an element in an array Array
indexOf() Returns the position of an element in a string Strings
indexOf() Returns the position of an element in a typed array Typed Array
Infinity A numeric value that represents positive/negative infinity Global
info() Outputs an informational message to the console Console
innerHeight Returns the height of the window's content area (viewport) including scrollbars Window Object
innerHTML Sets or returns the content of an element HTML Element
innerText Sets or returns the text content of a node and its descendants HTML Element
innerHeight Returns the height of a window's content area (viewport) Window Object
innerWidth Returns the width of a window's content area (viewport) Window Object
inputEncoding Returns the encoding, character set, used for the document HTML Document
inputType Returns the type of the change (i.e "inserting" or "deleting") InputEvent
insertAdjacentElement() Inserts a HTML element at the specified position relative to the current element HTML Element
insertAdjacentHTML() Inserts a HTML formatted text at the specified position relative to the current element HTML Element
insertAdjacentText() Inserts text into the specified position relative to the current element HTML Element
insertBefore() Inserts a new child node before a specified, existing, child node HTML Element
instanceof Returns true if an object is an instance of a specified object Operators
instant() Returns current time as a Temporal.Instant object Temporal.Now
Int8Array Typed array of 8-bit signed integers Typed Array
Int16Array Typed array of 16-bit signed integers Typed Array
Int32Array Typed array of 32-bit signed integers Typed Array
intersection() Returns the intersection of two sets Set
isArray() Checks whether an object is an array Array
isDisjointFrom() Returns true if no Set elements are elements in the argument Set Set
isError() Returns true if a passed value is an Error Error
isExtensible() Returns true if an object is extensible Proxy
isExtensible() Returns true if an object is extensible Reflect
isFinite() Rturns true if a Number is a finite number Number
isNaN() Returns true if the value of a Number is NaN Number
isSubsetOf() Returns true if all Set elements are elements in the argument Set Set
isSupersetOf() Returns true if all elements in the argument Set are also in this Set Set
isWellFormed() Returns true if a string is well formed String
isComposing Returns whether the state of the event is composing or not InputEvent
KeyboardEvent
isContentEditable Returns true if the content of an element is editable, otherwise false HTML Element
isDefaultNamespace() Returns true if a specified namespaceURI is the default, otherwise false HTML Element
isEqualNode() Checks if two elements are equal HTML Element
isExtensible() Returns true if an object is extensible Object
isFinite() Determines whether a value is a finite, legal number Global
Number
isFrozen() Returns true if an object is frozen Object
isId Returns true if the attribute is of type Id, otherwise it returns false Attribute
isInteger() Checks whether a value is an integer Number
isNaN() Determines whether a value is an illegal number Global
Number
isSafeInteger() Checks whether a value is a safe integer Number
isSameNode() Checks if two elements are the same node HTML Element
isSealed() Returns true if an object is sealed Object
isSupported() Returns true if a specified feature is supported on the element HTML Element
isTrusted Returns whether or not an event is trusted Event
item() Returns the attribute at a specified index Attribute
item() Returns the element at a specified index HTML Collection
item() Returns the node at a specified index HTML NodeList
item() Returns the token at a specified index DOMTokenList
javaEnabled() Returns true if the browser has Java enabled Window Navigator
join() Returns all elements of an array joined as a string Array
join() Returns all elements of a typed array joined as a string Typed Array
key Returns the key value of the key represented by the event KeyboardEvent
StorageEvent
key() Returns the name of the nth key in the storage Storage
keyCode Returns the Unicode character code of the key that triggered the onkeypress event, or the Unicode key code of the key that triggered the onkeydown or onkeyup event KeyboardEvent
keys() Returns an Iterator with the keys of an array Array
keys() Returns an Iterator with the keys of a map Map
keys() Returns an Iterator with the keys of an object Object
keys() Returns an Iterator with the keys of a det Set
keys() Returns an Iterator with the keys of an array Typed Array
keys() Returns an Iterator with the keys of a NodeList NodeList
keys() Returns an Iterator with the keys of a DOMTokenList DOMTokenList
lang Sets or returns the value of the lang attribute of an element HTML Element
language Returns the language of the browser Navigator
lastChild Returns the last child node of an element HTML Element
lastElementChild Returns the last child element of an element HTML Element
lastIndex Specifies the index at which to start the next match RegExp
lastIndexOf() Returns the last index of an element in an array Array
lastIndexOf() Returns the last index of an element in a string String
lastIndexOf() Returns the last position of an element in a typed array Typed Array
lastModified Returns the date and time the document was last modified HTML Document
length Sets or returns the number of elements in an array Array
length Returns the length of a string String
length Returns the length of a Typed Array Typed Array
length Returns the number of (framed) windows in the Window Window Object
length Returns the number of URLs in the Window history Window History
length Returns the number of nodes (attributes) in a NamedNodeMap. HTML Attributes
length Returns the number of elements in an HTMLCollection HTML Collection
length Returns the number of nodes in a NodeList HTML NodeList
length Returns the number of tokens in a DOMTokenList DOMTokenList
length Returns the number of items stored in for this domain API Storage
length Returns the number of Function parameters Function
lengthComputable Returns if the length of the progress can be computable ProgressEvent
let Declares a variable inside brackets {} scope Statements
links Returns a collection of all <a> and <area> elements in the document that have a href attribute HTML Document
LN2 Returns the natural logarithm of 2 (approx. 0.693) Math
LN10 Returns the natural logarithm of 10 (approx. 2.302) Math
loaded Returns how much work has been loaded ProgressEvent
localeCompare() Compares two strings in the current locale String
localStorage Allows to save key/value pairs in a web browser. Stores the data with no expiration date Window Object
location Returns the location of a key on the keyboard or device KeyboardEvent
location Returns the Location object for a window Window Object
log() Returns the natural logarithm of a number Math
Console
log() Writes (logs) a message to the console Window Console
log10() Returns the base-10 logarithm of a number Math
log1p() Returns the natural logarithm of 1 + a number Math
log2() Returns the base-2 logarithm of a number Math
LOG2E Returns the base-2 logarithm of E (approx. 1.442) Math
LOG10E Returns the base-10 logarithm of E (approx. 0.434) Math
map() Creates an array from calling a function for each array element Array
map() Creates an iterator from calling a function for each iterator element Iterator
map() Returns a new typed array using a function on every array element Typed Array
match() Returns the matches in a string against a regular expression String
matchAll() Returns the matches in a string against a regular expression Strings
matches() Returns a boolean value indicating whether an element is matched by a specific CSS selector or not HTML Element
matchMedia() Returns a MediaQueryList object representing the specified CSS media query string Window Object
max() Returns the number with the highest value Math
MAX_SAFE_INTEGER Returns the maximum safe integer in JavaScript Number
MIN_SAFE_INTEGER Returns the minimum safe integer in JavaScript Number
MAX_VALUE Returns the largest number possible in JavaScript Number
MIN_VALUE Returns the smallest number possible in JavaScript Number
message Sets or returns an error message (a string) Error
metaKey Returns whether the "META" key was pressed when an event was triggered MouseEvent
KeyboardEvent
TouchEvent
min() Returns the number with the lowest value Math
multiline Checks whether the "m" modifier is set RegExp
MIN_VALUE Returns the smallest number possible in JavaScript Number
moveBy() Moves a window relative to its current position Window Object
moveTo() Moves a window to the specified position Window Object
MovementX Returns the horizontal coordinate of the mouse pointer relative to the position of the last mousemove event MouseEvent
MovementY Returns the vertical coordinate of the mouse pointer relative to the position of the last mousemove event MouseEvent
name Sets or returns an Error name Error
name Returns the name of a function Function
name Returns the name of the Typed Array Typed Array
name Returns the name of the Window Window Object
name Returns the name of the Attribute HTML Attribute
namedItem() Returns the element with the specified ID, or name, in an HTMLCollection HTMLCollection
namespaceURI Returns the namespace URI of an element HTML Element
NaN A number that is not a legal number (Not-a-Number) Global
NaN A number that is not a legal number (Not-a-Number) Number
negated() Returns a new duration with this duration negated Duration
navigator Returns the Navigator object for a window Window Object
NEGATIVE_INFINITY Represents negative infinity (returned on overflow) Number
new (constructor) Creates a new Array object Array
new (constructor) Creates a new Boolean object Boolean
new (constructor) Creates a new Date object Date
new (constructor) Creates a new Duration object Duration
new (constructor) Creates a new Error object Error
new (constructor) Creates a new Instant object Instant
new (constructor) Creates a new Map object Map
new (constructor) Creates a new PlainDate object PlainDate
new (constructor) Creates a new PlainDateTime object PlainDateTime
new (constructor) Creates a new PlainMonthDay object PlainMonthDay
new (constructor) Creates a new PlainTime object PlainTime
new (constructor) Creates a new PlainYearMonth object PlainYearMonth
new (constructor) Creates a new Promise object Promise
new (constructor) Creates a new Set object Set
new (constructor) Creates a new ZonedDateTime object ZonedDateTime
newURL Returns the URL after the document anchor has been changed HTML Event
newValue Returns the new value of the changed storage item StorageEvent
nextSibling Returns the next node at the same node tree level HTML Element
nextElementSibling Returns the next element at the same node tree level HTML Element
nodeName Returns the name of a node HTML Element
nodeType Returns the node type of a node HTML Element
nodeValue Sets or returns the value of a node HTML Element
normalize() Removes empty text nodes, and joins adjacent nodes HTML Document
normalize() Removes empty text nodes, and joins adjacent nodes HTML Element
normalizeDocument() Removes empty Text nodes, and joins adjacent nodes HTML Document
now() Returns the number of milliseconds since midnight Jan 1, 1970 Date
Number() Converts an object's value to a number Global
of() Creates an array from a number of arguments Array
of() Creates a typed array from a number of arguments Typed Array
offsetHeight Returns the height of an element, including padding, border and scrollbar HTML Element
offsetWidth Returns the width of an element, including padding, border and scrollbar HTML Element
offsetLeft Returns the horizontal offset position of an element HTML Element
offsetParent Returns the offset container of an element HTML Element
offsetTop Returns the vertical offset position of an element HTML Element
offsetX Returns the horizontal coordinate of the mouse pointer relative to the position of the edge of the target element MouseEvent
offsetY Returns the vertical coordinate of the mouse pointer relative to the position of the edge of the target element MouseEvent
oldURL Returns the URL of the document, before the hash was changed HTML Event
oldValue Returns the old value of the changed storage item StorageEvent
onabort Occurs when the loading of a media is aborted Event
onafterprint Occurs when a page has started printing, or if the print dialogue box has been closed Event
onanimationend Occurs when a CSS animation has completed AnimationEvent
onanimationiteration Occurs when a CSS animation is repeated AnimationEvent
onanimationstart Occurs when a CSS animation has started AnimationEvent
onbeforeprint Occurs when a page is about to be printed Event
onbeforeunload Occurs before the document is about to be unloaded Event
onblur Occurs when an element loses focus FocusEvent
oncanplay Occurs when the browser can start playing the media (when it has buffered enough to begin) Event
oncanplaythrough Occurs when the browser can play through the media without stopping for buffering Event
onchange Occurs when the content of a form element, the selection, or the checked state have changed (for <input>, <select>, and <textarea>) Event
onclick Occurs when the user clicks on an element MouseEvent
oncontextmenu Occurs when the user right-clicks on an element to open a context menu MouseEvent
oncopy Occurs when the user copies the content of an element ClipboardEvent
oncut Occurs when the user cuts the content of an element ClipboardEvent
ondblclick Occurs when the user double-clicks on an element MouseEvent
ondrag Occurs when an element is being dragged DragEvent
ondragend Occurs when the user has finished dragging an element DragEvent
ondragenter Occurs when the dragged element enters the drop target DragEvent
ondragleave Occurs when the dragged element leaves the drop target DragEvent
ondragover Occurs when the dragged element is over the drop target DragEvent
ondragstart Occurs when the user starts to drag an element DragEvent
ondrop Occurs when the dragged element is dropped on the drop target DragEvent
ondurationchange Occurs when the duration of the media is changed Event
onemptied Occurs when something bad happens and the media file is suddenly unavailable (like unexpectedly disconnects)  
onended Occurs when the media has reach the end (useful for messages like "thanks for listening") Event
onerror Occurs when an error occurs while loading an external file ProgressEventEvent
onfocus Occurs when an element gets focus FocusEvent
onfocusin Occurs when an element is about to get focus FocusEvent
onfocusout Occurs when an element is about to lose focus FocusEvent
onfullscreenchange Occurs when an element is displayed in fullscreen mode Event
onfullscreenerror Occurs when an element can not be displayed in fullscreen mode Event
onhashchange Occurs when there has been changes to the anchor part of a URL HashChangeEvent
oninput Occurs when an element gets user input InputEvent
Event
oninvalid Occurs when an element is invalid Event
onkeydown Occurs when the user is pressing a key KeyboardEvent
onkeypress Occurs when the user presses a key KeyboardEvent
onkeyup Occurs when the user releases a key KeyboardEvent
onLine Determines whether the browser is online Navigator
onload Occurs when an object has loaded Event
onloadeddata Occurs when media data is loaded Event
onloadedmetadata Occurs when meta data (like dimensions and duration) are loaded Event
onloadstart Occurs when the browser starts looking for the specified media ProgressEvent
onmessage Occurs when a message is received through the event source Event
onmousedown Occurs when the user presses a mouse button over an element MouseEvent
onmouseenter Occurs when the pointer is moved onto an element MouseEvent
onmouseleave Occurs when the pointer is moved out of an element MouseEvent
onmousemove Occurs when the pointer is moving while it is over an element MouseEvent
onmouseover Occurs when the pointer is moved onto an element, or onto one of its children MouseEvent
onmouseout Occurs when a user moves the mouse pointer out of an element, or out of one of its children MouseEvent
onmouseup Occurs when a user releases a mouse button over an element MouseEvent
onmousewheel Deprecated.
Use the wheel event instead
WheelEvent
onoffline Occurs when the browser starts to work offline Event
ononline Occurs when the browser starts to work online Event
onopen Occurs when a connection with the event source is opened Event
onpagehide Occurs when the user navigates away from a webpage PageTransition
onpageshow Occurs when the user navigates to a webpage PageTransition
onpaste Occurs when the user pastes some content in an element ClipboardEvent
onpause Occurs when the media is paused either by the user or programmatically Event
onplay Occurs when the media has been started or is no longer paused Event
onplaying Occurs when the media is playing after having been paused or stopped for buffering Event
onpopstate Occurs when the window's history changes PopStateEvent
onprogress Occurs when the browser is in the process of getting the media data (downloading the media) Event
onratechange Occurs when the playing speed of the media is changed Event
onresize Occurs when the document view is resized Event
onreset Occurs when a form is reset Event
onscroll Occurs when an element's scrollbar is being scrolled Event
onsearch Occurs when the user writes something in a search field (for <input="search">) Event
onseeked Occurs when the user is finished moving/skipping to a new position in the media Event
onseeking Occurs when the user starts moving/skipping to a new position in the media Event
onselect Occurs after the user selects some text (for <input> and <textarea>) Event
onshow Occurs when a <menu> element is shown as a context menu Event
onstalled Occurs when the browser is trying to get media data, but data is not available Event
onstorage Occurs when a Web Storage area is updated StorageEvent
onsubmit Occurs when a form is submitted Event
onsuspend Occurs when the browser is intentionally not getting media data Event
ontimeupdate Occurs when the playing position has changed (like when the user fast forwards to a different point in the media) Event
ontoggle Occurs when the user opens or closes the <details> element Event
ontouchcancel Occurs when the touch is interrupted TouchEvent
ontouchend Occurs when a finger is removed from a touch screen TouchEvent
ontouchmove Occurs when a finger is dragged across the screen TouchEvent
ontouchstart Occurs when a finger is placed on a touch screen TouchEvent
ontransitionend Occurs when a CSS transition has completed TransitionEvent
onunload Occurs when a page has unloaded or window has been closed Event
onvolumechange Occurs when the volume of the media has changed or been muted Event
onwaiting Occurs when a media has paused but is expected to resume (buffering) Event
onwheel Occurs when the mouse wheel rolls up or down over an element WheelEvent
open() Opens an HTML Document to collect output from document.write() HTML Document
open() Opens a new browser window or a new tab Window Object
opener Returns a reference to the window that created the window Window Object
origin Returns the protocol, hostname and port number of a URL Window Object
outerHeight Returns the height of the browser window with toolbars/scrollbars Window Object
outerHTML Sets or returns the outer content of an element HTML Element
outerText Sets or returns the text outer content of a node and its descendants HTML Element
outerHeight Returns the height of the browser window with toolbars/scrollbars Window Object
outerWidth Returns the width of the browser window with toolbars/scrollbars Window Object
ownerDocument Returns the root element (document object) for an element HTML Element
ownKeys() Traps operations listing keys (properties) Proxy
ownKeys() Returns an array of an object's own property keys Reflect
padEnd() Pads a string at the end String
padStart() Pads a string from the start String
pageX Returns the horizontal coordinate of the mouse pointer MouseEvent
pageXOffset Returns the pixels a document has been scrolled Window Object
pageY Returns the vertical coordinate of the mouse pointer MouseEvent
pageYOffset Returns the pixels a document has been scrolled Window Object
pageYOffset Returns the pixels a document has been scrolled Window Object
parent Returns the parent window of the current window Window Object
parentNode Returns the parent node of an element HTML Element
parentElement Returns the parent element node of an element HTML Element
parse() Parses a string and returns milliseconds since epoch Date
parse() Parses a string and returns a JavaScript object JSON
parseFloat() Parses a string and returns the first number Global
parseFloat() Parses a string and returns the first number Number
parseInt() Parses a string and returns the first integer Global
parseInt() Parses a string and returns the first integer Number
pathname Sets or returns the path name of a URL Window Object
persisted Returns whether the webpage was cached by the browser PageTransition
PI Returns PI (approx. 3.14) Math
pixelDepth Returns the color resolution (in bits per pixel) of the screen Screen
plainDateISO() Returns a PlainDate representing current date in ISO 8601 Temporal.Now
plainDateTimeISO() Returns a PlainDateTime representing current date in ISO 8601 Temporal.Now
plainTimeISO() Returns a PlainTime representing current time in ISO 8601 Temporal.Now
platform Returns for which platform the browser is compiled Navigator
preventExtentions() Makes an object non-extensive Proxy
preventExtentions() Prevent properties from being added to an object Reflect
pop() Removes the last element of an array, and returns that element Array
port Sets or returns the port number of a URL Window Object
position Returns the position of the concerned device at a given time Geolocation
positionError Returns the reason of an error occurring when using the geolocating device Geolocation
positionOptions Describes an object containing option properties to pass as a parameter of Geolocation.getCurrentPosition() and Geolocation.watchPosition() Geolocation
POSITIVE_INFINITY Represents infinity (returned on overflow) Number
pow() Returns the value of x to the power of y Math
preventDefault() Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur Event
preventExtensions() Prevents adding new properties to an object Object
previousSibling Returns the previous node at the same node tree level HTML Element
previousElementSibling Returns the previous element at the same node tree level HTML Element
print() Prints the content of the current window Window Object
prompt() Displays a dialog box that prompts the visitor for input Window Object
prototype Allows you to add properties and methods to an object Number
Object
String
product Returns the engine name of the browser Navigator
propertyName Returns the name of the CSS property associated with the animation or transition AnimationEvent
TransitionEvent
protocol Sets or returns the protocol of a URL Window Object
prototype Bult in template for Array properties and methods Array
prototype Bult in template for Boolean properties and methods Boolean
prototype Bult in template for Date properties and methods Date
prototype Bult in template for Object properties and methods Object
prototype Bult in template for String properties and methods String
pseudoElement Returns the name of the pseudo-element of the animation or transition AnimationEvent
TransitionEvent
push() Adds new elements to the end of an array, and returns the new length Array
querySelector() Returns the first element that matches a CSS selector HTML Document
querySelector() Return first child element that matches a CSS selector HTML Element
querySelectorAll() Returns all elements that matches a CSS selector HTML Document
querySelectorAll() Returns all child elements that matches a CSS selector HTML Element
race() Returns a Promise from a list of promises, when the faster promise settles Promise
random() Returns a random number between 0 and 1 Math
readyState Returns the (loading) status of the document HTML Document
reduce() Reduce the values of an array to a single value Array
reduce() Reduce the values of an Iterator to a single value Iterator
reduce() Reduce the values of a Typed Array to a single value Typed Array
reduceRight() Reduce the values of an array to a single value Array
reduceRight() Reduce the values of a Typed Array to a single value Typed Array
referrer Returns the URL of the document that loaded the current document HTML Document
reject() Returns a Promise object rejected with a value Promise
reload() Reloads the current document Window Object
remove() Removes an element from the HTML DOM HTML Element
remove() Removes an element from a DOMTokenList DOMTokenList
removeAttribute() Removes an attribute from an element HTML Element
removeAttributeNode() Removes an attribute from an element HTML Element
removeChild() Removes a child node from an element HTML Element
removeEventListener() Removes an event handler from an HTML Document HTML Document
removeEventListener() Removes an event handler from an HTML Element HTML Element
removeEventlistener() Removes an event handler from a Window Object Window Object
removeItem() Removes that key from the storage Storage
removeNamedItem() Removes a node (by name) in a NamedNodeMap Attribute
removeNamedItem() Removes a specified attribute node Attribute
renameNode() Renames the specified node HTML Document
repeat Returns whether a key is being hold down repeatedly, or not KeyboardEvent
repeat() Returns a new string with a specified number of copies of an existing string String
replace() Replaces a token in a DOMTokenList. DOMTokenList
replace() Returns a string with a specified value is replaced String
replace() Replaces the current document with a new one Window Location
replaceAll() Returns a string with all matches of a specified value are replaced String
replaceChild() Replaces a child node in an element HTML Element
requestAnimationFrame() Requests function to update an animation before the next repaint Window Object
requestFullscreen() Shows an element in fullscreen mode HTML Element
resizeBy() Resizes the window by the specified pixels Window Object
resizeTo() Resizes the window to the specified width and height Window Object
resolve() Returns a Promise object resolved with a value Promise
rest (...) Destructs an array and collects the leftovers. Arrays
return Stops the execution of a function and returns a value from that function Statements
reverse() Reverses the order of the elements in an array Array
reverse() Reverses the order of the elements in a Typed Array Typed Array
round() Rounds x to the nearest integer Math
round() Returns a ZonedDateTime with this ZonedDateTime rounded ZonedDate
relatedTarget Returns the element related to the element that triggered the mouse event MouseEvent
FocusEvent
round() Returns a new Duration with this Duration rounded Duration
round() Returns a new Instant with this Instant rounded Instant
round() Returns a new PlainDateTime with this PlainDateTime rounded PlainDateTime
round() Returns a new PlainTime with this PlainTime rounded PlainTime
screen Returns the Screen object for the window Window Object
screenLeft Retrns the left position of a window Window Object
screenTop Retrns the top position of a window Window Object
screenX Returns the horizontal coordinate of the window/mouse pointer Window Object
screenX Returns the vertical coordinate of the mouse pointer Window Object
screenY Returns the vertical coordinate of the mouse pointer Window Object
scripts Returns a collection of <script> elements in the document HTML Document
scroll() Deprecated. Use scrollTo() instead. Window Object
scrollBy() Scrolls the document by the specified number of pixels Window Object
scrollHeight Returns the entire height of an element, including padding HTML Element
scrollIntoView() Scrolls the specified element into the visible area of the browser window HTML Element
scrollLeft Sets or returns the number of pixels an element's content is scrolled horizontally HTML Element
scrollTo() Scrolls the document to the specified coordinates Window Object
scrollTop Sets or returns the number of pixels an element's content is scrolled vertically HTML Element
scrollWidth Returns the entire width of an element, including padding HTML Element
scrollX An alias of pageXOffset Window Object
scrollY An alias of pageYOffset Window Object
seal() Prevents additions or deletions of new properties Object
search Sets or returns the querystring part of a URL Window Object
search() Searches a string for a specified value, or regular expression, and returns the position of the match String
self Returns the current window Window Object
sessionStorage Allows to save key/value pairs in a web browser. Stores the data for one session Window Object
set() Sets the value for a key in a map Map
set() Traps the internal [[Set]] method Proxy
set() Sets the value of a property Reflect
set() Stores values in a typed array from another array Typed Array
setAttribute() Sets or changes the specified attribute, to the specified value HTML Element
setAttributeNode() Sets or changes the specified attribute node HTML Element
setDate() Sets the day of the month of a date object Date
setFullYear() Sets the year of a date object Date
setHours() Sets the hour of a date object Date
setInterval() Calls a function / evaluates an expression at specified intervals Window Object
setItem() Adds or updates the value of the a storage object item Storage
setMilliseconds() Sets the milliseconds of a date object Date
setMinutes() Set the minutes of a date object Date
setMonth() Sets the month of a date object Date
setNamedItem() Sets the specified attribute node (by name) Attribute
setPrototypeOf() Traps setPrototypeOf() Proxy
setPrototypeOf() Sets the prototype of an object Reflect
setSeconds() Sets the seconds of a date object Date
setTime() Sets a date to a specified number of milliseconds after epoch Date
setTimeout() Calls a function or evaluates an expression after a number of milliseconds Window Object
setUTCDate() Sets the day of the month of a date object, according to universal time Date
setUTCFullYear() Sets the year of a date object, according to universal time Date
setUTCHours() Sets the hour of a date object, according to universal time Date
setUTCMilliseconds() Sets the milliseconds of a date object, according to universal time Date
setUTCMinutes() Set the minutes of a date object, according to universal time Date
setUTCMonth() Sets the month of a date object, according to universal time Date
setUTCSeconds() Set the seconds of a date object, according to universal time Date
setYear() Deprecated.
Use setFullYear() instead
Date
shift() Removes the first element of an array, and returns that element Array
shiftKey Returns whether the "SHIFT" key was pressed when an event was triggered MouseEvent
KeyboardEvent
TouchEvent
sign(x) Returns the sign of a number (checks whether it is positive, negative or zero) Math
sin() Returns the sine of x (x is in radians) Math
sinh() Returns the hyperbolic sine of x Math
since() Returns the Duration from another Instant Instant
since() Returns the Duration from another PlainDate PlainDate
since() Returns the Duration from another PlainDateTime PlainDateTime
since() Returns the Duration from another PlainTime PlainTime
since() Returns the Duration from another PlainYearMonth PlainYearMonth
since() Returns the Duration from another ZonedDateTime ZonedDateTime
size Returns the number of map elements Map
size Returns the number of set elements Set
slice() Returns an array with selected elements from an array Array
slice() Returns a string with selected characters from a string Strings
slice() Returns a typed array with selected elements from another array Typed Array
some() Returns true if some elements in an array pass a test Array
some() Returns true if some elements in an interator pass a test Iterators
some() Returns true if a function returns true for any array element Typed Array
sort() Sorts the elements of an array Array
sort() Returns a sorted typed array. Typed Array
source Returns the text of the RegExp pattern RegExp
specified Returns true if the attribute has been specified, otherwise it returns false Attribute
splice() Adds/Removes elements from an array Array
split() Splits a string into an array of substrings String
spread (...) Splits an array into individual elements. Array
sqrt() Returns the square root of x Math
SQRT1_2 Returns the square root of 1/2 (approx. 0.707) Math
SQRT2 Returns the square root of 2 (approx. 1.414) Math
static Defines a static method for a class Classes
startsWith() Checks whether a string begins with specified characters String
state Returns an object containing a copy of the history entries PopStateEvent
status Sets or returns the text in the statusbar of a window Window Object
sticky Returns true if the /y modifier is set in an expression RegExp
stop() Stops the window from loading Window Object
stopImmediate
Propagation()
Prevents other listeners of the same event from being called Event
stopPropagation() Prevents further propagation of an event during event flow Event
storageArea Returns an object representing the affected storage object StorageEvent
String() Converts a value to a string Global
stringify() Convert a JavaScript object to a JSON string JSON
strictErrorChecking Deprecated. Sets or returns whether error-checking is enforced or not HTML Document
style Sets or returns the value of the style attribute of an element HTML Element
subarray() Creates a new typed array in the same memory space Typed Array
substr() Deprecated. Use substring() or slice() instead String
substring() Extracts characters (between two indices) from a string String
subtract() Returns a Duration with a Duration subtracted Duration
subtract() Returns an Instant with a Duration subtracted Instant
subtract() Returns a PlainDate with a Duration subtracted PlainDate
subtract() Returns a PlainDateTime with a Duration subtracted PlainDateTime
subtract() Returns a PlainTime with a Duration subtracted PlainTime
subtract() Returns a PlainYearMonth with a Duration subtracted PlainYearMonth
subtract() Returns a ZonedDatetime with a Duration subtracted ZonedDateTime
super Refers to the parent class Classes
supports() Returns true if a token is one of an attribute's supported tokens DOMTokenList
switch Marks a block of statements to be executed depending on different cases Statements
symmetricDifference() Returns the symmetric difference between two sets Set
table() Displays tabular data as a table Console
tabIndex Sets or returns the value of the tabindex attribute of an element HTML Element
tagName Returns the tag name of an element HTML Element
taintEnabled() Deprecated. Window Navigator
take() Returns an iterator with specific elements from an iterator. Iterators
tan() Returns the tangent of an angle Math
tanh() Returns the hyperbolic tangent of a number Math
target Returns the element that triggered the event Event
targetTouches Returns a list of all the touch objects that are in contact with the surface and where the touchstart event occured on the same target element as the current target element TouchEvent
test() Tests for a match in a string. Returns true or false RegExp
textContent Sets or returns the textual content of a node and its descendants HTML Element
then() Provides two callbacks: One funtion to run when a promise is fulfilled and one funtion to run when a promise is rejected Promise
this Refers to the object it belongs to
throw Throws (generates) an error Statements
time() Starts a timer (can track how long an operation takes) Console
timeEnd() Stops a timer that was previously started by console.time() Console
timeStamp Returns the time (in milliseconds) when the event was created Event
timeZoneId() Returns a time zoneId representing the system's current time zone Temporal.Now
title Sets or returns the title of the document HTML Document
HTML Element
toDateString() Converts the date portion of a Date object into a readable string Date
toExponential() Converts a number into an exponential notation Number
toFixed(x) Formats a number with x numbers of digits after the decimal point Number
toggle() Adds one (or more) tokens to a DOMTokenList DOMTokenList
toGMTString() Deprecated. Use toUTCString() instead Date
toInstant() Returns an Instant representing the ZonedDateTime ZonedDateTime
toISOString() Returns a Date as a string, using the ISO standard Date
toJSON() Returns a Date as an ISO/RFC 9557 String Date
toJSON() Returns a Duration as an ISO/RFC 9557 String Duration
toJSON() Returns a Instant as an ISO/RFC 9557 String Instant
toJSON() Returns a PlainDate as an ISO/RFC 9557 String PlainDate
toJSON() Returns a PlainDateTime as an ISO/RFC 9557 String PlainDateTime
toJSON() Returns a PlainMonthDay as an ISO/RFC 9557 String PlainMonthDay
toJSON() Returns a PlainTime as an ISO/RFC 9557 String PlainTime
toJSON() Returns a PlainYearMonth as an ISO/RFC 9557 String PlainYearMonth
toJSON() Returns a ZonedDateTime as an ISO/RFC 9557 String ZonedDateTime
toLocaleDateString() Returns the date portion of a Date object as a string, using locale conventions Date
toLocaleLowerCase() Converts a string to lowercase letters, according to the host's locale String
toLocaleString() Returns the Date as a string using locale settings Date
toLocaleString() Returns a Duration as a string using locale settings Duration
toLocaleString() Returns an Intant as a string using locale settings Instant
toLocaleString() Returns a Date as a string using locale settings Number
toLocaleString() Returns a PlainDate as a string using locale settings PlainDate
toLocaleString() Returns a PlainDateTime as a string using locale settings PlainDateTime
toLocaleString() Returns a PlainMontDay as a string using locale settings PlainMonthDay
toLocaleString() Returns a PlainTime as a string using locale settings PlainTime
toLocaleString() Returns a PlainYearMonth a string using locale settings PlainYearMonth
toLocaleString() Returns an array as strings using locale settings Typed Array
toLocaleString() Returns a ZonedDateTime as a string using locale settings ZonedDateTime
toLocaleTimeString() Returns the time of a Date as a string using locale settings Date
toLocaleUpperCase() Converts a string to uppercase letters, according to the host's locale String
toLowerCase() Converts a string to lowercase letters String
top Returns the topmost browser window Window Object
toPlainDate() Returns a PlainDate representing this PlainDateTime PlainDateTime
toPlainDate() Returns a PlainDate representing this PlainMonthDay and a year PlainMonthDay
toPlaindate() Returns a PlainDate representing this PlainYearMonth and a day PlainYearMonth
toPlainDate() Returns a PlainDate representing the ZonedDateTime ZonedDateTime
toPlainDateTime() Returns a PlainDateTime representing this PlainDate PlainDate
toPlainDateTime() Returns a PlainDateTime representing the ZonedDateTime ZonedDateTime
toPlainMonthDay() Returns a PlainMonthDay representing this PlainDate PlainDate
toPlainTime() Returns a PlainTime representing this PlainDateTime PlainDateTime
toPlainTime() Returns a PlainTime representing the ZonedDateTime ZonedDateTime
toPlainYearMonth() Returns a PlainYearMonth representing this PlainDate PlainDate
toPrecision(x) Formats a number to x length Number
toReversed() Returns a new reversed Array Array
toReversed() Returns a new reversed Typed Array Typed Array
toSorted() Returns a new sorted Array Array
toSorted() Returns a new sorted Typed Array Typed Array
toSpliced() Adds or removes array elements (to a new array) Array
startofday() Returns the first ZonedDateTime instant of this date ZonedDateTime
toString() Returns the string values of aa Array Array
toString() Returns the string value of a boolean Boolean
toString() Returns the string value of a Date Date
toString() Returns the string value of a function Function
toString() Returns the string value of a Number Numbers
toString() Returns [object Object] Objects
toString() Returns the string value of a regular expression RegExp
toString() Returns the string value of a string Strings
toString() Returns the string values of a Typed Array Typed Array
toString() Returns the string value of a Duration Duration
toString() Returns the string value of an Instant Instant
toString() Returns the string value of a PlainDate PlainDate
toString() Returns the string value of a PlainDateTime PlainDateTime
toString() Returns the string value of a PlainMonthDay PlainMonthDay
toString() Returns the string value of a PlainTime PlainTime
toString() Returns the string value of a PlainYearMonth PlainYearMonth
toString() Returns the string value of a ZonedDateTime ZonedDateTime
total() Returns a number representing a total duration Duration
total Returns the total amount of work that will be loaded ProgressEvent
toTimeString() Converts the time portion of a Date object to a string Date
touches Returns a list of all touch objects currently in contact with the surface TouchEvent
toUpperCase() Converts a string to uppercase letters String
toUTCString() Converts a Date object to a string, according to universal time Date
toWellFormed() Returns a string with "lone surrogates" replaced as Unicode Strings
toZonedDateTime() Returns a ZonedDateTime representing this PlainDate PlainDate
toZonedDateTime() Returns a ZonedDateTime representing this PlainDateTime PlainDateTime
toZonedDateTimeISO() Returns a ZonedDateTime representing this Instant Instant
trace() Outputs a stack trace to the console Console
transitionend Occurs when a CSS transition has completed TransitionEvent
trim() Removes whitespace from both ends of a string String
trimEnd() Returns a string with removed whitespaces from the end String
trimStart() Returns a string with removed whitespaces from the start String
trunc() Returns the integer part of a number (x) Math
try() Executes a function and wraps the result in a promise Promises
try ... catch ... finally Marks the block of statements to be executed when an error occurs in a try block, and implements error handling Statements
type Returns the name of the event Event
typeof Returns the type of a variable Operators
Uint8Array Typed array of 8-bit unsigned integers Typed Arrays
Uint8ClampedArray Typed array of 8-bit clamped integers Typed Arrays
Uint16Array Typed array of 16-bit unsigned integers Typed Arrays
Uint32Array Typed array of 32-bit unsigned integers Typed Arrays
undefined Indicates that a variable has not been assigned a value Global
unescape() Deprecated. Use decodeURI() instead Global
unicode Returns true if the u flag is set in an expression RegExp
unicodeSets Returns true if the v flag is set in an expression RegExp
union() Returns the union of two sets Set
unshift() Adds new elements to the beginning of an array, and returns the new length Array
until() Returns the Duration from this Instant until another Instant
until() Returns the Duration from this PlainDate until another PlainDate
until() Returns the Duration from this PlainDateTime until another PlainDateTime
until() Returns the Duration from this PlainTime until another PlainTime
until() Returns the Duration from this PlainYearMonth until another PlainYearMonth
until() Returns the Duration from this ZonedDateTime until another ZonedDateTime
url Returns the URL of the changed item's document StorageEvent
URL Returns the full URL of the HTML document HTML Document
userAgent Returns the user-agent header sent by the browser to the server Navigator
UTC() Returns the number of milliseconds in a date since midnight of January 1, 1970, according to UTC time Date
value Sets or returns the value of the attribute Attribute
DOMTokenList
valueOf() Returns the primitive values of an array Array
valueOf() Returns the primitive value of a boolean Boolean
valueOf() Returns the primitive value of a Date Date
valueOf() Returns the primitive value of a function Function
valueOf() Returns the primitive value of a Number Number
valueOf() Returns [object Object] Object
valueOf() Returns the primitive value of a string Strings
valueOf() Throws a TypeError Duration
valueOf() Throws a TypeError Instant
valueOf() Throws a TypeError PlainDate
valueOf() Throws a TypeError PlainDateTime
valueOf() Throws a TypeError PlainMonthDay
valueOf() Throws a TypeError PlainTime
valueOf() Throws a TypeError PlainYearMonth
valueOf() Throws a TypeError ZonedDateTime
values() Returns an iterator object of the values in an array Array
values() Returns an iterator object of the values in a DOMTokenList DOMTokenList
values() Returns an iterator object of the values in a NodeList HTML NodeList
values() Returns an iterator object of the values in a map Map
values() Returns an iterator object of the values in an object Objects
values() Returns an iterator object of the values in a det Sets
values() Returns an iterator object of the values in a Typed Array Typed Array
var Declares a variable Statements
warn() Outputs a warning message to the console Console
watchPosition() Returns a watch ID value that then can be used to unregister the handler by passing it to the Geolocation.clearWatch() method Geolocation
which Returns which mouse button was pressed when the mouse event was triggered MouseEvent
KeyboardEvent
width Returns the total width of the screen Screen
with() Returns an array with updated elements Array
with() Typed Array
withResolvers() Promise
with() Returns a Duration with properties modified Duration
with() Returns a PlainDate with properties modified PlainDate
with() Returns a PlainDateTime with properties modified PlainDateTime
with() Returns a PlainMonthDay with properties modified PlainMonthDay
with() Returns a PlainTime with properties modified PlainTime
with() Returns a PlainYearMonth with properties modified PlainYearMonth
with() Returns a ZonedDateTime with properties modified ZonedDateTime
withCalendar() Returns a PlainDate in a new calendar system PlainDate
withCalendar() Returns a PlainDateTime in a new calendar system PlainDateTime
withCalendar() Returns a ZonedDateTime in a new calendar system ZonedDateTime
withPlainTime() Returns a PlainDateTime with the time part replaced PlainDateTime
withPlainTime() Returns a ZonedDateTime with the time part replaced ZonedDateTime
withTimeZone() Returns a ZonedDateTime with in another time zone. ZonedDateTime
view Returns a reference to the Window object where the event occurred Event
void Evaluates an expression and returns undefined Operators
while Marks a block of statements to be executed while a condition is true Statements
write() Writes HTML expressions or JavaScript code to a document HTML Document
writeln() Same as write(), but adds a newline character after each statement HTML Document
yield Pauses and resumes a generator function Operators
zonedDateTimeISO() Returns a ZonedDateTime representing the current date and time in the specified time zone Temporal.Now


JavaScript Tutorial

Visit Our JavaScript Tutorial »



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

-->