Open Playground
JS ReferencesLesson #126

JavaScript Alphabetical Reference

[Visit Our JavaScript Tutorial ](/js/default.asp)

Property/MethodBelongs ToDescription
abs()MathReturns the absolute value of x
abs()DurationReturns a Duration with the absolute value of a Duration
accessKeyHTML ElementSets or returns the accesskey attribute of an element
acos()MathReturns the arccosine of x in radians
acosh()MathReturns the hyperbolic arccosine of x
activeElementHTML DocumentReturns the currently focused element in the document
add()DurationReturns a Duration with a Duration added
add()InstantReturns an Instant with a Duration added
add()PlainDateReturns a PlainDate with a Duration added
add()PlainDateTimeReturns a PlainDateTime with a Duration added
add()PlainTimeReturns a PlainTime with a Duration added
add()PlainYearMonthReturns a PlainYearMonth with a Duration added
add()SetAdds a new element to a det
add()ZonedDateTimeAdds a Duration to a ZonedDateTime
add()DOMTokenListAdds one (or more) tokens to a DOMTokenList
addEventListener()HTML DocumentAttaches an event handler to a document
addEventListener()HTML ElementAttaches an event handler to an element
adoptNode()HTML DocumentAdopts a node from another document
after()HTML ElementInserts one or more nodes (elements) or strings after an element
alert()Window ObjectDisplays an alert box with a message and an OK button
all()PromiseReturns a single Promise from a list of promises, when all promises fulfill
allSettled()PromiseReturns a single Promise from a list of promises, when all promises are settled
altKeyMouseEvent KeyboardEvent TouchEventReturns whether the "ALT" key was pressed when the mouse event was triggered
anchorsHTML DocumentReturns a collection of all elements in the document that have a name attribute
animationNameAnimationEventReturns the name of the animation
any()PromiseReturns a single Promise from a list of promises, when any promise fulfills
appCodeNameNavigatorReturns the code name of the browser
append()HTML ElementAppends one or several nodes (element) or strings after the the last child of an element
appendChild()HTML ElementAdds a new child node, to an element, as the last child node
appletsHTML DocumentReturns a collection of all elements in the document
apply()FunctionCalls a function with a given this value
apply()ProxyA trap for the [[Call]] internal method
apply()ReflectCalls a function with arguments
appNameNavigatorReturns the name of the browser
appVersionNavigatorReturns the version information of the browser
Array()ConstructorsCreates an Array object
asin()MathReturns the arcsine of x, in radians
asinh()MathReturns the hyperbolic arcsine of x
assert()ConsoleWrites an error message to the console if the assertion is false
assign()Window ObjectLoads a new document
assign()ObjectsCopies properties from an object(s) to a target object
at()ArrayReturns an indexed element from an array
at()StringReturns an indexed element from a string
at()Typed ArrayReturns an indexed element from a typed array
addEventlistener()Window ObjectAttaches an event handler to a window
addEventListener()HTML ElementsAttaches an event handler to an element
atan()MathReturns the arctangent of x as a numeric value between -PI/2 and PI/2 radians
atan2()MathReturns the arctangent of the quotient of its arguments
atanh()MathReturns the hyperbolic arctangent of x
atob()Window ObjectDecodes a base-64 encoded string
attributesHTML ElementReturns a NamedNodeMap of an element's attributes
availHeightScreenReturns the height of the screen (excluding the Windows Taskbar)
availWidthScreenReturns the width of the screen (excluding the Windows Taskbar)
back()HistoryLoads the previous URL in the history list
baseURIHTML DocumentReturns the absolute base URI of a document
before()HTML ElementInserts nodes (elements) immediately before an element
BigInt()ConstructorsCreates a BigInt value
BigInt64ArrayTyped ArraysTyped array of 64-bit signed integers
BigUint64ArrayTyped ArraysTyped array of 64-bit un signed integers
bind()FunctionReturns a new Function with a specific value of this
blur()HTML ElementRemoves focus from an element
blur()Window ObjectRemoves focus from a window
bodyHTML DocumentSets or returns the document's body (the element)
Boolean()ConstructorsCreates a boolean value or a Boolean object
breakStatementsExits a switch or a loop
btoa()Window ObjectEncodes a string in base-64
bubblesEventReturns whether or not a specific event is a bubbling event
buttonMouseEventReturns which mouse button was pressed
buttonsMouseEventReturns which mouse buttons were pressed
byteLengthTyped ArrayReturns the length (in bytes) of a typed array
byteOffsetTyped ArrayReturns the offset of a typed array from the start of its ArrayBuffer
bytesPerElementTyped ArrayReturns the number of bytes used per element in a typed array
cancelableEventReturns whether or not an event can have its default action prevented
call()FunctionCalls a function with a given this value
catch()PromiseA callback function to run when a promise is rejected
causeErrorSets or Returns the cause of an error
cbrt()MathReturns the cubic root of x
ceil()MathReturns x, rounded upwards to the nearest integer
changeTouchesTouchEventReturns a list of all the touch objects whose state changed between the previous touch and this touch
characterSetHTML DocumentReturns the character encoding for the document
charAt()StringReturns the character at the specified index (position)
charCodeKeyboardEventReturns the Unicode character code of the key that triggered the onkeypress event
charCodeAt()StringReturns the Unicode of the character at the specified index
charsetHTML DocumentDeprecated. Use characterSet instead.
childElementCountHTML ElementReturns the number of child elements an element has
childNodesHTML ElementReturns a collection of an element's child nodes (including text and comment nodes)
childrenHTML ElementReturns a collection of an element's child element (excluding text and comment nodes)
classListHTML ElementReturns the class name(s) of an element
classStatementsDeclares a class
classNameHTML ElementSets or returns the value of the class attribute of an element
clear()ConsoleClears the console
clear()API StorageClears (removes) all storage objects for this domain
clear()MapsClears (removes) all elements from a map
clear()SetClears (removes) all elements from a set
clearInterval()Window ObjectClears a timer set with setInterval()
clearTimeout()Window ObjectClears a timer set with setTimeout()
clearWatch()GeolocationUnregister location/error monitoring handlers previously installed using Geolocation.watchPosition()
click()HTML ElementSimulates a mouse-click on an element
clientHeightHTML ElementReturns the height of an element, including padding
clientLeftHTML ElementReturns the width of the left border of an element
clientTopHTML ElementReturns the width of the top border of an element
clientWidthHTML ElementReturns the width of an element, including padding
clientXMouseEvent TouchEventReturns the horizontal coordinate of the mouse pointer, relative to the current window, when the mouse event was triggered
clientYMouseEvent TouchEventReturns the vertical coordinate of the mouse pointer, relative to the current window, when the mouse event was triggered
clipboardDataClipboardDataReturns an object containing the data affected by the clipboard operation
cloneNode()HTML ElementCreates a copy of a node, and returns the clone
closedWindow ObjectReturns a boolean value indicating whether a window has been closed or not
close()HTML DocumentCloses a document
close()Window ObjectCloses a window
closest()HTML ElementSearches up the DOM tree for the closest element which matches a specified CSS selector
clz32(x)MathReturns the number of leading zeros in a 32-bit binary representation of x
codeKeyboardEventReturns the code of the key that triggered the event
codePointAt()StringReturns the Unicode value at an index (position) in a string
colorDepthScreenReturns the bit depth of the color palette for displaying images
compare DocumentPosition()HTML ElementCompares the document position of two elements
compare()DurationReturns -1, 0, or 1 if a Duration is less than, equal, or grater than another
compare()InstantReturns -1, 0, or 1 if an Instant is before, equal, or later than another
compare()PlainDateReturns -1, 0, or 1 if a PlainDate is before, equal, or later than another
compare()PlainDateTimeReturns -1, 0, or 1 if a PlainDateTime is before, equal, or later than another
compare()PlainTimeReturns -1, 0, or 1 if a PlainTime is before, equal, or later than another
compare()PlainYearMonthReturns -1, 0, or 1 if a PlainYearMonth is before, equal, or later than another
compare()ZonedDateTimeReturns -1, 0, or 1 if a ZonedDateTime is before, equal, or later than another
compile()RegExpDeprecated. Compiles a regular expression
composedEventReturns whether the event is composed or not
concat()ArrayReturns two or more joined arrays
concat()StringReturns two or more joined strings
confirm()Window ObjectDisplays a dialog box with a message and an OK and a Cancel button
constStatementsDeclares a variable with a constant value
construct()ProxyTraps the new operator
construct()ReflectConstructs a new object (acts like the new operator)
constructor()ClassesCreates and initialize objects created within a class
constructorArrayReturns the function that created the Array prototype
constructorBooleanReturns the function that created the Boolean prototype
constructorDateReturns the function that created the Date prototype
constructorNumberReturns the function that created the Number prototype
constructorObjectReturns the function that created the Object prototype
constructorRegExpReturns the function that created the RegExp prototype
constructorStringReturns the function that created the String prototype
contains()HTML ElementReturns true if a node is a descendant of a node
contains()DOMTokenListtrue if a DOMTokenList contains a class
contentEditableHTML ElementSets or returns whether the content of an element is editable or not
continueStatementsBreaks one iteration (in the loop) if a specified condition occurs, and continues with the next iteration in the loop
consoleWindow ObjectReturns a reference to the Console object
cookieHTML DocumentReturns all name/value pairs of cookies in the document
cookieEnabledNavigatorDetermines whether cookies are enabled in the browser
coordinatesGeolocationReturns the position and altitude of the device on Earth
copyWithin()ArrayCopies array elements to another position in the array
copyWithin()Typed ArrayCopies typed array elements to another position in the array
cos(x)MathReturns the cosine of x (x is in radians)
cosh(x)MathReturns the hyperbolic cosine of x
count()ConsoleLogs the number of times that this particular call to count() has been called
create()ObjectReturns an object created from an existing object
createAttribute()HTML DocumentCreates an attribute node
createComment()HTML DocumentCreates a Comment node with the specified text
create DocumentFragment()HTML DocumentCreates an empty DocumentFragment node
createElement()HTML DocumentCreates an element node
createEvent()HTML Document EventCreates a new event
createTextNode()HTML DocumentCreates a Text node
ctrlKeyMouseEvent KeyboardEvent TouchEventReturns whether the "CTRL" key was pressed when the mouse event was triggered
currentTargetEventReturns the element whose event listeners triggered the event
dataInputEventReturns the inserted characters
Date()ConstructorsCreates a Date object
dataTransferDragEvent InputEventReturns an object containing the data being dragged/dropped, or inserted/deleted
debuggerStatementsStops the execution of JavaScript, and calls (if available) the debugging function
decodeURI()GlobalDecodes a URI
decodeURIComponent()GlobalDecodes a URI component
defaultPreventedEventReturns whether or not the preventDefault() method was called for the event
defaultStatusWindow ObjectSets or returns the default text in the statusbar of a window
defaultViewHTML DocumentReturns the window object associated with a document, or null if none is available.
defineProperties()ObjectAdds or changes properties
defineProperty()ObjectAdds or changes a property
defineProperty()ProxyTraps defineProperty()
defineProperty()ReflectDefines or modifies a property
deleteObjectsDeletes a property from an object
delete()MapDeletes an element from a map
delete()SetDeletes an element from a set
deleteProperty()ProxyTraps the delete operator
deleteProperty()ReflectDeletes a property from an object
deltaXWheelEventReturns the horizontal scroll amount of a mouse wheel (x-axis)
deltaYWheelEventReturns the vertical scroll amount of a mouse wheel (y-axis)
deltaZWheelEventReturns the scroll amount of a mouse wheel for the z-axis
deltaModeWheelEventReturns a number that represents the unit of measurements for delta values (pixels, lines or pages)
designModeHTML DocumentControls whether the entire document should be editable or not.
detailEventReturns a number that indicates how many times the mouse was clicked
difference()SetReturns the difference between two sets
dirHTML ElementSets or returns the value of the dir attribute of an element
dir()Window ConsoleDisplays a list of the properties of a JavaScript object
do ... whileStatementsExecutes a block of statements and repeats the block while a condition is true
doctypeHTML DocumentReturns the Document Type Declaration associated with the document
documentWindow ObjectReturns the Document object for the window
documentElementHTML DocumentReturns the Document Element of the document (the element)
documentModeHTML DocumentReturns the mode used by the browser to render the document
documentURIHTML DocumentSets or returns the location of the document
domainHTML DocumentReturns the domain name of the server that loaded the document
domConfigHTML DocumentsDeprecated.
dotAllRegExpReturns true if the s modifier is set in the expression
drop()IteratorReturns an iterator with a number of elements dropped
EMathReturns Euler's number (approx. 2.718)
elapsedTimeAnimationEventReturns the number of seconds an animation has been running
elapsedTimeReturns the number of seconds a transition has been running
embedsHTML DocumentReturns a collection of all elements the document
encodeURI()GlobalEncodes a URI
encodeURIComponent()GlobalEncodes a URI component
endsWith()StringChecks whether a string ends with specified string/characters
entries()ArrayReturns an Iterator with the key/value pairs of an array
entries()MapsReturns an Iterator with the key/value pairs of a map
entries()ObjectsReturns an Iterator with the key/value pairs of an object
entries()SetsReturns an Iterator with the key/value pairs of a det
entries()Typed ArrayReturns an Iterator with the key/value pairs of an array
entries()NodeListReturns an Iterator with the key/value pairs a NodeList
entries()DOMTokenListReturns an Iterator with the key/value pairs of a DOMTokenList
EPSILONNumberReturns the difference between 1 and the smallest number
equals()InstantReturns true if this Instant is equal to another Instant
equals()PlainDateReturns true if this PlainDate is equal to another PlainDate
equals()PlainDateTimeReturns true if this PlainDateTime is equal to another
equals()PlainMonthDayReturns true if this PlainMonthDay is equal to another
equals()PlainTimeReturns true if this PlainTime is equal to another PlainTime
equals()PlainYearMonthReturns true if this PlainYearMonth is equal to another PlainYearMonth
equals()ZonedDateTimeReturns true if this ZonedDateTime is equal to another
Error()ConstructorsCreates an Error object
error()ConsoleOutputs an error message to the console
escape()GlobalDeprecated.Use encodeURI() instead
escape()RegExpReturns string where all regular expressions are escaped
eval()GlobalEvaluates a string and executes it as if it was script code
eventPhaseEventReturns which phase of the event flow is currently being evaluated
every()ArrayReturns true if every element in an array pass a test
every()IteratorReturns true if every element in an Iterator pass a test
every()Typed ArrayReturns true if every element in a Typed Array pass a test
exec()RegExpTests for a match in a string. Returns the first match
execCommand()HTML DocumentInvokes the specified clipboard operation on the element currently having focus.
exitFullscreen()HTML ElementCancels an element in fullscreen mode
exp(x)MathReturns the value of Ex
expm1(x)MathReturns the value of Ex minus 1
exportExport functions so they can be used for imports in external modules, and other scripts
extendsClassesExtends a class (inherit)
f16round()MathReturns the nearest 16-bit floating point representation of a number
fill()ArrayFills all elements in an array with a value
fill()Typed ArrayFills all array elements with a value
filter()ArrayCreates a new Array with elements that pass a test
filter()IteratorCreates a new Iterator with elements that pass a test
filter()Typed ArrayCreates a new Typed Array with elements that pass a test
finally()PromiseA callback function to run when a promise is settled
find()ArrayReturns the value of the first element in an array that pass a test
find()IteratorReturns the value of the first element that passes a test
find()Typed ArrayReturns the value of the first element that passes a test
findIndex()ArrayReturns the index of the first element in an array that pass a test
findIndex()Typed ArrayReturns the index of the first element that passes a test
findLast()ArrayReturns the value of the last element in an array that pass a test
findLast()Typed ArrayReturns the value of the last element that passes a test
findLastIndex()ArrayReturns the index of the last element in an array that pass a test
findLastIndex()Typed ArrayReturns the index of the last element that passes a test
firstChildHTML ElementReturns the first child node of a node
firstElementChildHTML ElementReturns the first child element of the specified element
flagsRegExpReturns s sting with the flags set in the expression
flat()ArrayConcatenates sub-array elements
flatMap()ArrayMaps array elements and creates a new flat array
flatMap()IteratorsMaps iterator elements and creates a new flat iterator
Float16ArrayTyped ArraysTyped array of 16-bit floating point numbers
Float32ArrayTyped ArraysTyped array of 32-bit floating point numbers
Float64ArrayTyped ArraysTyped array of 64-bit floating point numbers
floor()MathReturns x, rounded downwards to the nearest integer
focus()HTML ElementSets focus to an element
focus()Window ObjectSets focus to a window
forStatementsMarks a code block to execute if a condition is true
for ... in StatementsMarks a code block to execute for each element of an object
for...ofStatementsMarks a code block to loop over the values of any iterable
forEach()ArrayCalls a function for each Array element
forEach()IteratorCalls a function for each Iterator element
forEach()MapCalls a function for each Map element
forEach()SetCalls a function for each Set element
forEach()Typed ArrayCalls a function for each Typed Array element
forEach()NodeListCalls a function for each NodeList element
forEach()DOMTokenListCalls a function for each DOMTokenList element
formsHTML DocumentReturns a collection of all elements in the document
forward()HistoryLoads the next URL in the history list
frameElementWindow ObjectReturns the element of the current window
framesWindow ObjectReturns all elements in the current window
freeze()ObjectPrevents any changes to an object
from()Arrayreturns a new Array from an object
from()IteratorReturns an Iterator from any iterable
from()DurationReturns a Duration from a Duration or an ISO string
from()InstantReturns a Instant from an ISO string
fromEpochMilliseconds()InstantReturns an Instant object from a number of milliseconds
fromEpochNanoseconds()InstantReturns an Instant object from a number of nanoseconds
from()PlainDateReturns a PlainDate from an object or an ISO String
from()PlainDateTimeReturns a PlainDateTime from an object or an ISO String
from()PlainMonthDayReturns a PlainMonthDay from an object or an ISO String
from()PlainTimeReturns a PlainTime from an object or an ISO String
from()PlainYearMonthReturns a PlainYearMonth from an object or an ISO String
from()Typed ArrayReturns a Typed Array from any Object with a length property
from()ZonedDateTimeReturns a ZonedDateTime from an object or an ISO String
fromCharCode()StringConverts Unicode values to characters
fromEntries()ObjectReturns an object created from an iterable list of key/value pairs
fround()MathReturns the nearest float representation of a number
fullscreenElementHTML DocumentReturns the current element that is displayed in fullscreen mode
fullscreenEnabled()HTML DocumentReturns a boolean value indicating whether the document can be viewed in fullscreen mode
Function()ConstructorsCreates a Function object
functionStatementsDeclares a function
geolocationNavigatorReturns a Geolocation object that can be used to locate the user's position
get()MapGets the value of a key in a map
get()ProxyA trap for the internal [[Get]] method
get()ReflectA trap for the internal [[Get]] method
getAttribute()HTML ElementReturns the specified attribute value of an element node
getAttributeNode()HTML ElementReturns the specified attribute node
getBoundingClientRect()HTML ElementReturns the size of an element and its position relative to the viewport
getComputedStyle()Window ObjectGets the current computed CSS styles applied to an element
getCurrentPosition()GeolocationReturns the current position of the device
getCurrentPosition()API GeolocationReturns the current position of the device
getDate()DateReturns the day of the month (from 1-31)
getDay()DateReturns the day of the week (from 0-6)
getElementById()HTML DocumentReturns the element that has the ID attribute with the specified value
getElementsByClassName()HTML DocumentReturns a NodeList containing all elements with the specified class name
getElementsByClassName()HTML ElementReturns a collection of all child elements with a given class name
getElementsBy Name()HTML DocumentReturns a NodeList containing all elements with a specified name
getElementsByTagName()HTML DocumentReturns a NodeList containing all elements with the specified tag name
getElementsByTagName()HTML ElementReturns a collection of all child elements with a given tag name
getFullYear()DateReturns the year
getHours()DateReturns the hour (from 0-23)
getItem()StorageReturns the value of the specified key name
getMilliseconds()DateReturns the milliseconds (from 0-999)
getMinutes()DateReturns the minutes (from 0-59)
getModifierState()MouseEventReturns an array containing target ranges that will be affected by the insertion/deletion
getMonth()DateReturns the month (from 0-11)
getNamedItem()AttributeReturns a specified attribute node from a NamedNodeMap
getOwnProperty Descriptor()ProxyReturns a property descriptor
getOwnProperty Descriptor()ReflectReturns a property descriptor
getOwn PropertyDescriptor()ObjectReturns the property descriptors of an object
getOwn PropertyDescriptors()ObjectReturns the property descriptors of an object
getOwn PropertyNames()ObjectReturns an array with the properties of an object
getPrototypeOf()ProxyReturns the prototype of an object
getPrototypeOf()ReflectReturns the prototype of an object
getSeconds()DateReturns the seconds (from 0-59)
getSelection()Window ObjectReturns a Selection object representing the range of text selected by the user
getTargetRanges()InputEventReturns an array containing target ranges that will be affected by the insertion/deletion
getTime()DateReturns the number of milliseconds since midnight Jan 1 1970, and a specified date
getTimezoneOffset()DateReturns the time difference between UTC time and local time, in minutes
getTimeZoneTransition()ZonedDateTimeReturns a ZonedDateTime representing the closest instant after or before the time zone's UTC offset changes.
getUTCDate()DateReturns the day of the month, according to universal time (from 1-31)
getUTCDay()DateReturns the day of the week, according to universal time (from 0-6)
getUTCFullYear()DateReturns the year, according to universal time
getUTCHours()DateReturns the hour, according to universal time (from 0-23)
getUTCMilliseconds()DateReturns the milliseconds, according to universal time (from 0-999)
getUTCMinutes()DateReturns the minutes, according to universal time (from 0-59)
getUTCMonth()DateReturns the month, according to universal time (from 0-11)
getUTCSeconds()DateReturns the seconds, according to universal time (from 0-59)
getYear()DateDeprecated. Use getFullYear() instead
globalRegExpChecks whether the "g" modifier is set
go()HistoryLoads a specific URL from the history list
group()ConsoleCreates a new inline group in the console. This indents following console messages by an additional level, until console.groupEnd() is called
groupBy()MapGroups iterable elements using values returned from a function
groupBy()ObjectsGroups iterable elements using string values returned from a function
groupCollapsed()ConsoleCreates 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
groupEnd()ConsoleExits the current inline group in the console
has()MapReturns true if a key exists in a map
has()ProxyIntercepts the in operator
has()ReflectReturns true if a property exists in an object
has()SetsReturns true if a value exists in a det
hasAttribute()HTML ElementReturns true if an element has the specified attribute, otherwise false
hasAttributes()HTML ElementReturns true if an element has any attributes, otherwise false
hasChildNodes()HTML ElementReturns true if an element has any child nodes, otherwise false
hasFocus()HTML DocumentReturns a boolean value indicating whether the document has focus
hashWindow ObjectSets or returns the anchor part (#) of a URL
hasIndicesRegExpReturns true if the "d" modifier is set in the expression
headHTML DocumentReturns the element of the document
heightScreenReturns the total height of the screen
historyWindow ObjectReturns the History object for the window
hostWindow ObjectSets or returns the hostname and port number of a URL
hostnameWindow ObjectSets or returns the hostname of a URL
hrefWindow ObjectSets or returns the entire URL
idHTML ElementSets or returns the value of the id attribute of an element
if ... else ... else ifStatementsMarks a block of statements to be executed depending on a condition
ignoreCaseRegExpChecks whether the "i" modifier is set
imagesHTML DocumentReturns a collection of all elements in the document
implementationHTML DocumentReturns the DOMImplementation object that handles this document
importNode()HTML DocumentImports a node from another document
inOperatorsReturns true if a property is in a specified object
includes()ArrayReturns true if an array includes a specified value
includes()Typed ArrayReturns true if a typed array includes a specified value
includes()StringsReturns true if a string contains a specified value
indexOf()ArrayReturns the position of an element in an array
indexOf()StringsReturns the position of an element in a string
indexOf()Typed ArrayReturns the position of an element in a typed array
InfinityGlobalA numeric value that represents positive/negative infinity
info()ConsoleOutputs an informational message to the console
innerHeightWindow ObjectReturns the height of the window's content area (viewport) including scrollbars
innerHTMLHTML ElementSets or returns the content of an element
innerTextHTML ElementSets or returns the text content of a node and its descendants
innerHeightWindow ObjectReturns the height of a window's content area (viewport)
innerWidthWindow ObjectReturns the width of a window's content area (viewport)
inputEncodingHTML DocumentReturns the encoding, character set, used for the document
inputTypeInputEventReturns the type of the change (i.e "inserting" or "deleting")
insertAdjacentElement()HTML ElementInserts a HTML element at the specified position relative to the current element
insertAdjacentHTML()HTML ElementInserts a HTML formatted text at the specified position relative to the current element
insertAdjacentText()HTML ElementInserts text into the specified position relative to the current element
insertBefore()HTML ElementInserts a new child node before a specified, existing, child node
instanceofOperatorsReturns true if an object is an instance of a specified object
instant()Temporal.NowReturns current time as a Temporal.Instant object
Int8ArrayTyped ArrayTyped array of 8-bit signed integers
Int16ArrayTyped ArrayTyped array of 16-bit signed integers
Int32ArrayTyped ArrayTyped array of 32-bit signed integers
intersection()SetReturns the intersection of two sets
isArray()ArrayChecks whether an object is an array
isDisjointFrom()SetReturns true if no Set elements are elements in the argument Set
isError()ErrorReturns true if a passed value is an Error
isExtensible()ProxyReturns true if an object is extensible
isExtensible()ReflectReturns true if an object is extensible
isFinite()NumberRturns true if a Number is a finite number
isNaN()NumberReturns true if the value of a Number is NaN
isSubsetOf()SetReturns true if all Set elements are elements in the argument Set
isSupersetOf()SetReturns true if all elements in the argument Set are also in this Set
isWellFormed()StringReturns true if a string is well formed
isComposingInputEvent KeyboardEventReturns whether the state of the event is composing or not
isContentEditableHTML ElementReturns true if the content of an element is editable, otherwise false
isDefaultNamespace()HTML ElementReturns true if a specified namespaceURI is the default, otherwise false
isEqualNode()HTML ElementChecks if two elements are equal
isExtensible()ObjectReturns true if an object is extensible
isFinite()Global NumberDetermines whether a value is a finite, legal number
isFrozen()ObjectReturns true if an object is frozen
isIdAttributeReturns true if the attribute is of type Id, otherwise it returns false
isInteger()NumberChecks whether a value is an integer
isNaN()Global NumberDetermines whether a value is an illegal number
isSafeInteger()NumberChecks whether a value is a safe integer
isSameNode()HTML ElementChecks if two elements are the same node
isSealed()ObjectReturns true if an object is sealed
isSupported()HTML ElementReturns true if a specified feature is supported on the element
isTrustedEventReturns whether or not an event is trusted
item()AttributeReturns the attribute at a specified index
item()HTML CollectionReturns the element at a specified index
item()HTML NodeListReturns the node at a specified index
item()DOMTokenListReturns the token at a specified index
javaEnabled()Window NavigatorReturns true if the browser has Java enabled
join()ArrayReturns all elements of an array joined as a string
join()Typed ArrayReturns all elements of a typed array joined as a string
keyKeyboardEvent StorageEventReturns the key value of the key represented by the event
key()StorageReturns the name of the nth key in the storage
keyCodeKeyboardEventReturns 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
keys()ArrayReturns an Iterator with the keys of an array
keys()MapReturns an Iterator with the keys of a map
keys()ObjectReturns an Iterator with the keys of an object
keys()SetReturns an Iterator with the keys of a det
keys()Typed ArrayReturns an Iterator with the keys of an array
keys()NodeListReturns an Iterator with the keys of a NodeList
keys()DOMTokenListReturns an Iterator with the keys of a DOMTokenList
langHTML ElementSets or returns the value of the lang attribute of an element
languageNavigatorReturns the language of the browser
lastChildHTML ElementReturns the last child node of an element
lastElementChildHTML ElementReturns the last child element of an element
lastIndexRegExpSpecifies the index at which to start the next match
lastIndexOf()ArrayReturns the last index of an element in an array
lastIndexOf()StringReturns the last index of an element in a string
lastIndexOf()Typed ArrayReturns the last position of an element in a typed array
lastModifiedHTML DocumentReturns the date and time the document was last modified
lengthArraySets or returns the number of elements in an array
lengthStringReturns the length of a string
lengthTyped ArrayReturns the length of a Typed Array
lengthWindow ObjectReturns the number of (framed) windows in the Window
lengthWindow HistoryReturns the number of URLs in the Window history
lengthHTML AttributesReturns the number of nodes (attributes) in a NamedNodeMap.
lengthHTML CollectionReturns the number of elements in an HTMLCollection
lengthHTML NodeListReturns the number of nodes in a NodeList
lengthDOMTokenListReturns the number of tokens in a DOMTokenList
lengthAPI StorageReturns the number of items stored in for this domain
lengthFunctionReturns the number of Function parameters
lengthComputableProgressEventReturns if the length of the progress can be computable
letStatementsDeclares a variable inside brackets {} scope
linksHTML DocumentReturns a collection of all and elements in the document that have a href attribute
LN2MathReturns the natural logarithm of 2 (approx. 0.693)
LN10MathReturns the natural logarithm of 10 (approx. 2.302)
loadedProgressEventReturns how much work has been loaded
localeCompare()StringCompares two strings in the current locale
localStorageWindow ObjectAllows to save key/value pairs in a web browser. Stores the data with no expiration date
locationKeyboardEventReturns the location of a key on the keyboard or device
locationWindow ObjectReturns the Location object for a window
log()Math ConsoleReturns the natural logarithm of a number
log()Window ConsoleWrites (logs) a message to the console
log10()MathReturns the base-10 logarithm of a number
log1p()MathReturns the natural logarithm of 1 + a number
log2()MathReturns the base-2 logarithm of a number
LOG2EMathReturns the base-2 logarithm of E (approx. 1.442)
LOG10EMathReturns the base-10 logarithm of E (approx. 0.434)
Map()ConstructorsCreates a Map object
map()ArrayCreates an array from calling a function for each array element
map()IteratorCreates an iterator from calling a function for each iterator element
map()Typed ArrayReturns a new typed array using a function on every array element
match()StringReturns the matches in a string against a regular expression
matchAll()StringsReturns the matches in a string against a regular expression
matches()HTML ElementReturns a boolean value indicating whether an element is matched by a specific CSS selector or not
matchMedia()Window ObjectReturns a MediaQueryList object representing the specified CSS media query string
max()MathReturns the number with the highest value
MAX_SAFE_INTEGERNumberReturns the maximum safe integer in JavaScript
MIN_SAFE_INTEGERNumberReturns the minimum safe integer in JavaScript
MAX_VALUENumberReturns the largest number possible in JavaScript
MIN_VALUENumberReturns the smallest number possible in JavaScript
messageErrorSets or returns an error message (a string)
metaKeyMouseEvent KeyboardEvent TouchEventReturns whether the "META" key was pressed when an event was triggered
min()MathReturns the number with the lowest value
multilineRegExpChecks whether the "m" modifier is set
MIN_VALUENumberReturns the smallest number possible in JavaScript
moveBy()Window ObjectMoves a window relative to its current position
moveTo()Window ObjectMoves a window to the specified position
MovementXMouseEventReturns the horizontal coordinate of the mouse pointer relative to the position of the last mousemove event
MovementYMouseEventReturns the vertical coordinate of the mouse pointer relative to the position of the last mousemove event
nameErrorSets or returns an Error name
nameFunctionReturns the name of a function
nameTyped ArrayReturns the name of the Typed Array
nameWindow ObjectReturns the name of the Window
nameHTML AttributeReturns the name of the Attribute
namedItem()HTMLCollectionReturns the element with the specified ID, or name, in an HTMLCollection
namespaceURIHTML ElementReturns the namespace URI of an element
NaNGlobalA number that is not a legal number (Not-a-Number)
NaNNumberA number that is not a legal number (Not-a-Number)
negated()DurationReturns a new duration with this duration negated
navigatorWindow ObjectReturns the Navigator object for a window
NEGATIVE_INFINITYNumberRepresents negative infinity (returned on overflow)
new (constructor)ArrayCreates a new Array object
new (constructor)BooleanCreates a new Boolean object
new (constructor)DateCreates a new Date object
new (constructor)Duration
new (constructor)ErrorCreates a new Error object
new (constructor)InstantCreates a new Instant object
new (constructor)MapCreates a new Map object
new (constructor)PlainDateCreates a new PlainDate object
new (constructor)PlainDateTimeCreates a new PlainDateTime object
new (constructor)PlainMonthDayCreates a new PlainMonthDay object
new (constructor)PlainTimeCreates a new PlainTime object
new (constructor)PlainYearMonthCreates a new PlainYearMonth object
new (constructor)PromiseCreates a new Promise object
new (constructor)SetCreates a new Set object
new (constructor)ZonedDateTimeCreates a new ZonedDateTime object
newURLHTML EventReturns the URL after the document anchor has been changed
newValueStorageEventReturns the new value of the changed storage item
nextSiblingHTML ElementReturns the next node at the same node tree level
nextElementSiblingHTML ElementReturns the next element at the same node tree level
nodeNameHTML ElementReturns the name of a node
nodeTypeHTML ElementReturns the node type of a node
nodeValueHTML ElementSets or returns the value of a node
normalize()HTML DocumentRemoves empty text nodes, and joins adjacent nodes
normalize()HTML ElementRemoves empty text nodes, and joins adjacent nodes
normalizeDocument()HTML DocumentRemoves empty Text nodes, and joins adjacent nodes
now()DateReturns the number of milliseconds since midnight Jan 1, 1970
Number()ConstructorsCreates a number value or a Number object
Number()GlobalConverts an object's value to a number
Object()ConstructorsCreates an Object
of()ArrayCreates an array from a number of arguments
of()Typed ArrayCreates a typed array from a number of arguments
offsetHeightHTML ElementReturns the height of an element, including padding, border and scrollbar
offsetWidthHTML ElementReturns the width of an element, including padding, border and scrollbar
offsetLeftHTML ElementReturns the horizontal offset position of an element
offsetParentHTML ElementReturns the offset container of an element
offsetTopHTML ElementReturns the vertical offset position of an element
offsetXMouseEventReturns the horizontal coordinate of the mouse pointer relative to the position of the edge of the target element
offsetYMouseEventReturns the vertical coordinate of the mouse pointer relative to the position of the edge of the target element
oldURLHTML EventReturns the URL of the document, before the hash was changed
oldValueStorageEventReturns the old value of the changed storage item
onabortEventOccurs when the loading of a media is aborted
onafterprintEventOccurs when a page has started printing, or if the print dialogue box has been closed
onanimationendAnimationEventOccurs when a CSS animation has completed
onanimationiterationAnimationEventOccurs when a CSS animation is repeated
onanimationstartAnimationEventOccurs when a CSS animation has started
onbeforeprintEventOccurs when a page is about to be printed
onbeforeunloadEventOccurs before the document is about to be unloaded
onblurFocusEventOccurs when an element loses focus
oncanplayEventOccurs when the browser can start playing the media (when it has buffered enough to begin)
oncanplaythroughEventOccurs when the browser can play through the media without stopping for buffering
onchangeEventOccurs when the content of a form element, the selection, or the checked state have changed (for , , and )
onclickMouseEventOccurs when the user clicks on an element
oncontextmenuMouseEventOccurs when the user right-clicks on an element to open a context menu
oncopyClipboardEventOccurs when the user copies the content of an element
oncutClipboardEventOccurs when the user cuts the content of an element
ondblclickMouseEventOccurs when the user double-clicks on an element
ondragDragEventOccurs when an element is being dragged
ondragendDragEventOccurs when the user has finished dragging an element
ondragenterDragEventOccurs when the dragged element enters the drop target
ondragleaveDragEventOccurs when the dragged element leaves the drop target
ondragoverDragEventOccurs when the dragged element is over the drop target
ondragstartDragEventOccurs when the user starts to drag an element
ondropDragEventOccurs when the dragged element is dropped on the drop target
ondurationchangeEventOccurs when the duration of the media is changed
onemptiedOccurs when something bad happens and the media file is suddenly unavailable (like unexpectedly disconnects)
onendedEventOccurs when the media has reach the end (useful for messages like "thanks for listening")
onerrorProgressEvent EventOccurs when an error occurs while loading an external file
onfocusFocusEventOccurs when an element gets focus
onfocusinFocusEventOccurs when an element is about to get focus
onfocusoutFocusEventOccurs when an element is about to lose focus
onfullscreenchangeEventOccurs when an element is displayed in fullscreen mode
onfullscreenerrorEventOccurs when an element can not be displayed in fullscreen mode
onhashchangeHashChangeEventOccurs when there has been changes to the anchor part of a URL
oninputInputEvent EventOccurs when an element gets user input
oninvalidEventOccurs when an element is invalid
onkeydownKeyboardEventOccurs when the user is pressing a key
onkeypressKeyboardEventOccurs when the user presses a key
onkeyupKeyboardEventOccurs when the user releases a key
onLineNavigatorDetermines whether the browser is online
onloadEventOccurs when an object has loaded
onloadeddataEventOccurs when media data is loaded
onloadedmetadataEventOccurs when meta data (like dimensions and duration) are loaded
onloadstartProgressEventOccurs when the browser starts looking for the specified media
onmessageEventOccurs when a message is received through the event source
onmousedownMouseEventOccurs when the user presses a mouse button over an element
onmouseenterMouseEventOccurs when the pointer is moved onto an element
onmouseleaveMouseEventOccurs when the pointer is moved out of an element
onmousemoveMouseEventOccurs when the pointer is moving while it is over an element
onmouseoverMouseEventOccurs when the pointer is moved onto an element, or onto one of its children
onmouseoutMouseEventOccurs when a user moves the mouse pointer out of an element, or out of one of its children
onmouseupMouseEventOccurs when a user releases a mouse button over an element
onmousewheelWheelEventDeprecated. Use the wheel event instead
onofflineEventOccurs when the browser starts to work offline
ononlineEventOccurs when the browser starts to work online
onopenEventOccurs when a connection with the event source is opened
onpagehidePageTransitionOccurs when the user navigates away from a webpage
onpageshowPageTransitionOccurs when the user navigates to a webpage
onpasteClipboardEventOccurs when the user pastes some content in an element
onpauseEventOccurs when the media is paused either by the user or programmatically
onplayEventOccurs when the media has been started or is no longer paused
onplayingEventOccurs when the media is playing after having been paused or stopped for buffering
onpopstatePopStateEventOccurs when the window's history changes
onprogressEventOccurs when the browser is in the process of getting the media data (downloading the media)
onratechangeEventOccurs when the playing speed of the media is changed
onresizeEventOccurs when the document view is resized
onresetEventOccurs when a form is reset
onscrollEventOccurs when an element's scrollbar is being scrolled
onsearchEventOccurs when the user writes something in a search field (for )
onseekedEventOccurs when the user is finished moving/skipping to a new position in the media
onseekingEventOccurs when the user starts moving/skipping to a new position in the media
onselectEventOccurs after the user selects some text (for and )
onshowEventOccurs when a element is shown as a context menu
onstalledEventOccurs when the browser is trying to get media data, but data is not available
onstorageStorageEventOccurs when a Web Storage area is updated
onsubmitEventOccurs when a form is submitted
onsuspendEventOccurs when the browser is intentionally not getting media data
ontimeupdateEventOccurs when the playing position has changed (like when the user fast forwards to a different point in the media)
ontoggleEventOccurs when the user opens or closes the element
ontouchcancelTouchEventOccurs when the touch is interrupted
ontouchendTouchEventOccurs when a finger is removed from a touch screen
ontouchmoveTouchEventOccurs when a finger is dragged across the screen
ontouchstartTouchEventOccurs when a finger is placed on a touch screen
ontransitionendTransitionEventOccurs when a CSS transition has completed
onunloadEventOccurs when a page has unloaded or window has been closed
onvolumechangeEventOccurs when the volume of the media has changed or been muted
onwaitingEventOccurs when a media has paused but is expected to resume (buffering)
onwheelWheelEventOccurs when the mouse wheel rolls up or down over an element
open()HTML DocumentOpens an HTML Document to collect output from document.write()
open()Window ObjectOpens a new browser window or a new tab
openerWindow ObjectReturns a reference to the window that created the window
originWindow ObjectReturns the protocol, hostname and port number of a URL
outerHeightWindow ObjectReturns the height of the browser window with toolbars/scrollbars
outerHTMLHTML ElementSets or returns the outer content of an element
outerTextHTML ElementSets or returns the text outer content of a node and its descendants
outerHeightWindow ObjectReturns the height of the browser window with toolbars/scrollbars
outerWidthWindow ObjectReturns the width of the browser window with toolbars/scrollbars
ownerDocumentHTML ElementReturns the root element (document object) for an element
ownKeys()ProxyTraps operations listing keys (properties)
ownKeys()ReflectReturns an array of an object's own property keys
padEnd()StringPads a string at the end
padStart()StringPads a string from the start
pageXMouseEventReturns the horizontal coordinate of the mouse pointer
pageXOffsetWindow ObjectReturns the pixels a document has been scrolled
pageYMouseEventReturns the vertical coordinate of the mouse pointer
pageYOffsetWindow ObjectReturns the pixels a document has been scrolled
pageYOffsetWindow ObjectReturns the pixels a document has been scrolled
parentWindow ObjectReturns the parent window of the current window
parentNodeHTML ElementReturns the parent node of an element
parentElementHTML ElementReturns the parent element node of an element
parse()DateParses a string and returns milliseconds since epoch
parse()JSONParses a string and returns a JavaScript object
parseFloat()GlobalParses a string and returns the first number
parseFloat()NumberParses a string and returns the first number
parseInt()GlobalParses a string and returns the first integer
parseInt()NumberParses a string and returns the first integer
pathnameWindow ObjectSets or returns the path name of a URL
persistedPageTransitionReturns whether the webpage was cached by the browser
PIMathReturns PI (approx. 3.14)
pixelDepthScreenReturns the color resolution (in bits per pixel) of the screen
plainDateISO()Temporal.NowReturns a PlainDate representing current date in ISO 8601
plainDateTimeISO()Temporal.NowReturns a PlainDateTime representing current date in ISO 8601
plainTimeISO()Temporal.NowReturns a PlainTime representing current time in ISO 8601
platformNavigatorReturns for which platform the browser is compiled
preventExtentions()ProxyMakes an object non-extensive
preventExtentions()ReflectPrevent properties from being added to an object
pop()ArrayRemoves the last element of an array, and returns that element
portWindow ObjectSets or returns the port number of a URL
positionGeolocationReturns the position of the concerned device at a given time
positionErrorGeolocationReturns the reason of an error occurring when using the geolocating device
positionOptionsGeolocationDescribes an object containing option properties to pass as a parameter of Geolocation.getCurrentPosition() and Geolocation.watchPosition()
POSITIVE_INFINITYNumberRepresents infinity (returned on overflow)
pow()MathReturns the value of x to the power of y
preventDefault()EventCancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur
preventExtensions()ObjectPrevents adding new properties to an object
previousSiblingHTML ElementReturns the previous node at the same node tree level
previousElementSiblingHTML ElementReturns the previous element at the same node tree level
print()Window ObjectPrints the content of the current window
Promise()ConstructorsCreates a Promise object
prompt()Window ObjectDisplays a dialog box that prompts the visitor for input
prototypeNumber Object StringAllows you to add properties and methods to an object
productNavigatorReturns the engine name of the browser
propertyNameAnimationEvent TransitionEventReturns the name of the CSS property associated with the animation or transition
protocolWindow ObjectSets or returns the protocol of a URL
prototypeArrayBult in template for Array properties and methods
prototypeBooleanBult in template for Boolean properties and methods
prototypeDateBult in template for Date properties and methods
prototypeObjectBult in template for Object properties and methods
prototypeStringBult in template for String properties and methods
pseudoElementAnimationEvent TransitionEventReturns the name of the pseudo-element of the animation or transition
push()ArrayAdds new elements to the end of an array, and returns the new length
querySelector()HTML DocumentReturns the first element that matches a CSS selector
querySelector()HTML ElementReturn first child element that matches a CSS selector
querySelectorAll()HTML DocumentReturns all elements that matches a CSS selector
querySelectorAll()HTML ElementReturns all child elements that matches a CSS selector
race()PromiseReturns a Promise from a list of promises, when the faster promise settles
random()MathReturns a random number between 0 and 1
readyStateHTML DocumentReturns the (loading) status of the document
reduce()ArrayReduce the values of an array to a single value
reduce()IteratorReduce the values of an Iterator to a single value
reduce()Typed ArrayReduce the values of a Typed Array to a single value
reduceRight()ArrayReduce the values of an array to a single value
reduceRight()Typed ArrayReduce the values of a Typed Array to a single value
referrerHTML DocumentReturns the URL of the document that loaded the current document
RegExp()ConstructorsCreates a RegExp (regular expression) object
reject()PromiseReturns a Promise object rejected with a value
reload()Window ObjectReloads the current document
remove()HTML ElementRemoves an element from the HTML DOM
remove()DOMTokenListRemoves an element from a DOMTokenList
removeAttribute()HTML ElementRemoves an attribute from an element
removeAttributeNode()HTML ElementRemoves an attribute from an element
removeChild()HTML ElementRemoves a child node from an element
removeEventListener()HTML DocumentRemoves an event handler from an HTML Document
removeEventListener()HTML ElementRemoves an event handler from an HTML Element
removeEventlistener()Window ObjectRemoves an event handler from a Window Object
removeItem()StorageRemoves that key from the storage
removeNamedItem()AttributeRemoves a node (by name) in a NamedNodeMap
removeNamedItem()AttributeRemoves a specified attribute node
renameNode()HTML DocumentRenames the specified node
repeatKeyboardEventReturns whether a key is being hold down repeatedly, or not
repeat()StringReturns a new string with a specified number of copies of an existing string
replace()DOMTokenListReplaces a token in a DOMTokenList.
replace()StringReturns a string with a specified value is replaced
replace()Window LocationReplaces the current document with a new one
replaceAll()StringReturns a string with all matches of a specified value are replaced
replaceChild()HTML ElementReplaces a child node in an element
requestAnimationFrame()Window ObjectRequests function to update an animation before the next repaint
requestFullscreen()HTML ElementShows an element in fullscreen mode
resizeBy()Window ObjectResizes the window by the specified pixels
resizeTo()Window ObjectResizes the window to the specified width and height
resolve()PromiseReturns a Promise object resolved with a value
rest (...)ArraysDestructs an array and collects the leftovers.
returnStatementsStops the execution of a function and returns a value from that function
reverse()ArrayReverses the order of the elements in an array
reverse()Typed ArrayReverses the order of the elements in a Typed Array
round()MathRounds x to the nearest integer
round()ZonedDateReturns a ZonedDateTime with this ZonedDateTime rounded
relatedTargetMouseEvent FocusEventReturns the element related to the element that triggered the mouse event
round()DurationReturns a new Duration with this Duration rounded
round()InstantReturns a new Instant with this Instant rounded
round()PlainDateTimeReturns a new PlainDateTime with this PlainDateTime rounded
round()PlainTimeReturns a new PlainTime with this PlainTime rounded
screenWindow ObjectReturns the Screen object for the window
screenLeftWindow ObjectRetrns the left position of a window
screenTopWindow ObjectRetrns the top position of a window
screenXWindow ObjectReturns the horizontal coordinate of the window/mouse pointer
screenXWindow ObjectReturns the vertical coordinate of the mouse pointer
screenYWindow ObjectReturns the vertical coordinate of the mouse pointer
scriptsHTML DocumentReturns a collection of elements in the document
scroll()Window ObjectDeprecated. Use scrollTo() instead.
scrollBy()Window ObjectScrolls the document by the specified number of pixels
scrollHeightHTML ElementReturns the entire height of an element, including padding
scrollIntoView()HTML ElementScrolls the specified element into the visible area of the browser window
scrollLeftHTML ElementSets or returns the number of pixels an element's content is scrolled horizontally
scrollTo()Window ObjectScrolls the document to the specified coordinates
scrollTopHTML ElementSets or returns the number of pixels an element's content is scrolled vertically
scrollWidthHTML ElementReturns the entire width of an element, including padding
scrollXWindow ObjectAn alias of pageXOffset
scrollYWindow ObjectAn alias of pageYOffset
seal()ObjectPrevents additions or deletions of new properties
searchWindow ObjectSets or returns the querystring part of a URL
search()StringSearches a string for a specified value, or regular expression, and returns the position of the match
selfWindow ObjectReturns the current window
sessionStorageWindow ObjectAllows to save key/value pairs in a web browser. Stores the data for one session
Set()ConstructorsCreates a Set object
set()MapSets the value for a key in a map
set()ProxyTraps the internal [[Set]] method
set()ReflectSets the value of a property
set()Typed ArrayStores values in a typed array from another array
setAttribute()HTML ElementSets or changes the specified attribute, to the specified value
setAttributeNode()HTML ElementSets or changes the specified attribute node
setDate()DateSets the day of the month of a date object
setFullYear()DateSets the year of a date object
setHours()DateSets the hour of a date object
setInterval()Window ObjectCalls a function / evaluates an expression at specified intervals
setItem()StorageAdds or updates the value of the a storage object item
setMilliseconds()DateSets the milliseconds of a date object
setMinutes()DateSet the minutes of a date object
setMonth()DateSets the month of a date object
setNamedItem()AttributeSets the specified attribute node (by name)
setPrototypeOf()ProxyTraps setPrototypeOf()
setPrototypeOf()ReflectSets the prototype of an object
setSeconds()DateSets the seconds of a date object
setTime()DateSets a date to a specified number of milliseconds after epoch
setTimeout()Window ObjectCalls a function or evaluates an expression after a number of milliseconds
setUTCDate()DateSets the day of the month of a date object, according to universal time
setUTCFullYear()DateSets the year of a date object, according to universal time
setUTCHours()DateSets the hour of a date object, according to universal time
setUTCMilliseconds()DateSets the milliseconds of a date object, according to universal time
setUTCMinutes()DateSet the minutes of a date object, according to universal time
setUTCMonth()DateSets the month of a date object, according to universal time
setUTCSeconds()DateSet the seconds of a date object, according to universal time
setYear()DateDeprecated. Use setFullYear() instead
shift()ArrayRemoves the first element of an array, and returns that element
shiftKeyMouseEvent KeyboardEvent TouchEventReturns whether the "SHIFT" key was pressed when an event was triggered
sign(x)MathReturns the sign of a number (checks whether it is positive, negative or zero)
sin()MathReturns the sine of x (x is in radians)
sinh()MathReturns the hyperbolic sine of x
since()InstantReturns the Duration from another Instant
since()PlainDateReturns the Duration from another PlainDate
since()PlainDateTimeReturns the Duration from another PlainDateTime
since()PlainTimeReturns the Duration from another PlainTime
since()PlainYearMonthReturns the Duration from another PlainYearMonth
since()ZonedDateTimeReturns the Duration from another ZonedDateTime
sizeMapReturns the number of map elements
sizeSetReturns the number of set elements
slice()ArrayReturns an array with selected elements from an array
slice()StringsReturns a string with selected characters from a string
slice()Typed ArrayReturns a typed array with selected elements from another array
some()ArrayReturns true if some elements in an array pass a test
some()IteratorsReturns true if some elements in an interator pass a test
some()Typed ArrayReturns true if a function returns true for any array element
sort()ArraySorts the elements of an array
sort()Typed ArrayReturns a sorted typed array.
sourceRegExpReturns the text of the RegExp pattern
specifiedAttributeReturns true if the attribute has been specified, otherwise it returns false
splice()ArrayAdds/Removes elements from an array
split()StringSplits a string into an array of substrings
spread (...)ArraySplits an array into individual elements.
sqrt()MathReturns the square root of x
SQRT1_2MathReturns the square root of 1/2 (approx. 0.707)
SQRT2MathReturns the square root of 2 (approx. 1.414)
staticClassesDefines a static method for a class
startsWith()StringChecks whether a string begins with specified characters
statePopStateEventReturns an object containing a copy of the history entries
statusWindow ObjectSets or returns the text in the statusbar of a window
stickyRegExpReturns true if the /y modifier is set in an expression
stop()Window ObjectStops the window from loading
stopImmediate Propagation()EventPrevents other listeners of the same event from being called
stopPropagation()EventPrevents further propagation of an event during event flow
storageAreaStorageEventReturns an object representing the affected storage object
String()ConstructorsCreates a string value or a String object
String()GlobalConverts a value to a string
stringify()JSONConvert a JavaScript object to a JSON string
strictErrorCheckingHTML DocumentDeprecated. Sets or returns whether error-checking is enforced or not
styleHTML ElementSets or returns the value of the style attribute of an element
subarray()Typed ArrayCreates a new typed array in the same memory space
substr()StringDeprecated. Use substring() or slice() instead
substring()StringExtracts characters (between two indices) from a string
subtract()DurationReturns a Duration with a Duration subtracted
subtract()InstantReturns an Instant with a Duration subtracted
subtract()PlainDateReturns a PlainDate with a Duration subtracted
subtract()PlainDateTimeReturns a PlainDateTime with a Duration subtracted
subtract()PlainTimeReturns a PlainTime with a Duration subtracted
subtract()PlainYearMonthReturns a PlainYearMonth with a Duration subtracted
subtract()ZonedDateTimeReturns a ZonedDatetime with a Duration subtracted
superClassesRefers to the parent class
supports()DOMTokenListReturns true if a token is one of an attribute's supported tokens
switchStatementsMarks a block of statements to be executed depending on different cases
symmetricDifference()SetReturns the symmetric difference between two sets
table()ConsoleDisplays tabular data as a table
tabIndexHTML ElementSets or returns the value of the tabindex attribute of an element
tagNameHTML ElementReturns the tag name of an element
taintEnabled()Window NavigatorDeprecated.
take()IteratorsReturns an iterator with specific elements from an iterator.
tan()MathReturns the tangent of an angle
tanh()MathReturns the hyperbolic tangent of a number
targetEventReturns the element that triggered the event
targetTouchesTouchEventReturns 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
test()RegExpTests for a match in a string. Returns true or false
textContentHTML ElementSets or returns the textual content of a node and its descendants
then()PromiseProvides two callbacks: One funtion to run when a promise is fulfilled and one funtion to run when a promise is rejected
thisRefers to the object it belongs to
throwStatementsThrows (generates) an error
time()ConsoleStarts a timer (can track how long an operation takes)
timeEnd()ConsoleStops a timer that was previously started by console.time()
timeStampEventReturns the time (in milliseconds) when the event was created
timeZoneId()Temporal.NowReturns a time zoneId representing the system's current time zone
titleHTML DocumentSets or returns the title of the document
titleHTML ElementsSets or returns the value of an element's title attribute
toDateString()DateConverts the date portion of a Date object into a readable string
toExponential()NumberConverts a number into an exponential notation
toFixed(x)NumberFormats a number with x numbers of digits after the decimal point
toggle()DOMTokenListAdds one (or more) tokens to a DOMTokenList
toGMTString()DateDeprecated. Use toUTCString() instead
toInstant()ZonedDateTimeReturns an Instant representing the ZonedDateTime
toISOString()DateReturns a Date as a string, using the ISO standard
toJSON()DateReturns a Date as an ISO/RFC 9557 String
toJSON()DurationReturns a Duration as an ISO/RFC 9557 String
toJSON()InstantReturns a Instant as an ISO/RFC 9557 String
toJSON()PlainDateReturns a PlainDate as an ISO/RFC 9557 String
toJSON()PlainDateTimeReturns a PlainDateTime as an ISO/RFC 9557 String
toJSON()PlainMonthDayReturns a PlainMonthDay as an ISO/RFC 9557 String
toJSON()PlainTimeReturns a PlainTime as an ISO/RFC 9557 String
toJSON()PlainYearMonthReturns a PlainYearMonth as an ISO/RFC 9557 String
toJSON()ZonedDateTimeReturns a ZonedDateTime as an ISO/RFC 9557 String
toLocaleDateString()DateReturns the date portion of a Date object as a string, using locale conventions
toLocaleLowerCase()StringConverts a string to lowercase letters, according to the host's locale
toLocaleString()DateReturns the Date as a string using locale settings
toLocaleString()DurationReturns a Duration as a string using locale settings
toLocaleString()InstantReturns an Intant as a string using locale settings
toLocaleString()NumberReturns a Date as a string using locale settings
toLocaleString()PlainDateReturns a PlainDate as a string using locale settings
toLocaleString()PlainDateTimeReturns a PlainDateTime as a string using locale settings
toLocaleString()PlainMonthDayReturns a PlainMontDay as a string using locale settings
toLocaleString()PlainTimeReturns a PlainTime as a string using locale settings
toLocaleString()PlainYearMonthReturns a PlainYearMonth a string using locale settings
toLocaleString()Typed ArrayReturns an array as strings using locale settings
toLocaleString()ZonedDateTimeReturns a ZonedDateTime as a string using locale settings
toLocaleTimeString()DateReturns the time of a Date as a string using locale settings
toLocaleUpperCase()StringConverts a string to uppercase letters, according to the host's locale
toLowerCase()StringConverts a string to lowercase letters
topWindow ObjectReturns the topmost browser window
toPlainDate()PlainDateTimeReturns a PlainDate representing this PlainDateTime
toPlainDate()PlainMonthDayReturns a PlainDate representing this PlainMonthDay and a year
toPlaindate()PlainYearMonthReturns a PlainDate representing this PlainYearMonth and a day
toPlainDate()ZonedDateTimeReturns a PlainDate representing the ZonedDateTime
toPlainDateTime()PlainDateReturns a PlainDateTime representing this PlainDate
toPlainDateTime()ZonedDateTimeReturns a PlainDateTime representing the ZonedDateTime
toPlainMonthDay()PlainDateReturns a PlainMonthDay representing this PlainDate
toPlainTime()PlainDateTimeReturns a PlainTime representing this PlainDateTime
toPlainTime()ZonedDateTimeReturns a PlainTime representing the ZonedDateTime
toPlainYearMonth()PlainDateReturns a PlainYearMonth representing this PlainDate
toPrecision(x)NumberFormats a number to x length
toReversed()ArrayReturns a new reversed Array
toReversed()Typed ArrayReturns a new reversed Typed Array
toSorted()ArrayReturns a new sorted Array
toSorted()Typed ArrayReturns a new sorted Typed Array
toSpliced()ArrayAdds or removes array elements (to a new array)
startofday()ZonedDateTimeReturns the first ZonedDateTime instant of this date
toString()ArrayReturns the string values of aa Array
toString()BooleanReturns the string value of a boolean
toString()DateReturns the string value of a Date
toString()FunctionReturns the string value of a function
toString()NumbersReturns the string value of a Number
toString()ObjectsReturns [object Object]
toString()RegExpReturns the string value of a regular expression
toString()StringsReturns the string value of a string
toString()Typed ArrayReturns the string values of a Typed Array
toString()DurationReturns the string value of a Duration
toString()InstantReturns the string value of an Instant
toString()PlainDateReturns the string value of a PlainDate
toString()PlainDateTimeReturns the string value of a PlainDateTime
toString()PlainMonthDayReturns the string value of a PlainMonthDay
toString()PlainTimeReturns the string value of a PlainTime
toString()PlainYearMonthReturns the string value of a PlainYearMonth
toString()ZonedDateTimeReturns the string value of a ZonedDateTime
total()DurationReturns a number representing a total duration
totalProgressEventReturns the total amount of work that will be loaded
toTimeString()DateConverts the time portion of a Date object to a string
touchesTouchEventReturns a list of all touch objects currently in contact with the surface
toUpperCase()StringConverts a string to uppercase letters
toUTCString()DateConverts a Date object to a string, according to universal time
toWellFormed()StringsReturns a string with "lone surrogates" replaced as Unicode
toZonedDateTime()PlainDateReturns a ZonedDateTime representing this PlainDate
toZonedDateTime()PlainDateTimeReturns a ZonedDateTime representing this PlainDateTime
toZonedDateTimeISO()InstantReturns a ZonedDateTime representing this Instant
trace()ConsoleOutputs a stack trace to the console
transitionendTransitionEventOccurs when a CSS transition has completed
trim()StringRemoves whitespace from both ends of a string
trimEnd()StringReturns a string with removed whitespaces from the end
trimStart()StringReturns a string with removed whitespaces from the start
trunc()MathReturns the integer part of a number (x)
try()PromisesExecutes a function and wraps the result in a promise
try ... catch ... finallyStatementsMarks the block of statements to be executed when an error occurs in a try block, and implements error handling
typeEventReturns the name of the event
typeofOperatorsReturns the type of a variable
Uint8ArrayTyped ArraysTyped array of 8-bit unsigned integers
Uint8ClampedArrayTyped ArraysTyped array of 8-bit clamped integers
Uint16ArrayTyped ArraysTyped array of 16-bit unsigned integers
Uint32ArrayTyped ArraysTyped array of 32-bit unsigned integers
undefinedGlobalIndicates that a variable has not been assigned a value
unescape()GlobalDeprecated. Use decodeURI() instead
unicodeRegExpReturns true if the u flag is set in an expression
unicodeSetsRegExpReturns true if the v flag is set in an expression
union()SetReturns the union of two sets
unshift()ArrayAdds new elements to the beginning of an array, and returns the new length
until()InstantReturns the Duration from this Instant until another
until()PlainDateReturns the Duration from this PlainDate until another
until()PlainDateTimeReturns the Duration from this PlainDateTime until another
until()PlainTimeReturns the Duration from this PlainTime until another
until()PlainYearMonthReturns the Duration from this PlainYearMonth until another
until()ZonedDateTimeReturns the Duration from this ZonedDateTime until another
urlStorageEventReturns the URL of the changed item's document
URLHTML DocumentReturns the full URL of the HTML document
userAgentNavigatorReturns the user-agent header sent by the browser to the server
UTC()DateReturns the number of milliseconds in a date since midnight of January 1, 1970, according to UTC time
valueAttributeSets or returns the value of the attribute
valueDOMTokenListReturns a DOMTokenList as a string
valueOf()ArrayReturns the primitive values of an array
valueOf()BooleanReturns the primitive value of a boolean
valueOf()DateReturns the primitive value of a Date
valueOf()FunctionReturns the primitive value of a function
valueOf()NumberReturns the primitive value of a Number
valueOf()ObjectReturns [object Object]
valueOf()StringsReturns the primitive value of a string
valueOf()DurationThrows a TypeError
valueOf()InstantThrows a TypeError
valueOf()PlainDateThrows a TypeError
valueOf()PlainDateTimeThrows a TypeError
valueOf()PlainMonthDayThrows a TypeError
valueOf()PlainTimeThrows a TypeError
valueOf()PlainYearMonthThrows a TypeError
valueOf()ZonedDateTimeThrows a TypeError
values()ArrayReturns an iterator object of the values in an array
values()DOMTokenListReturns an iterator object of the values in a DOMTokenList
values()HTML NodeListReturns an iterator object of the values in a NodeList
values()MapReturns an iterator object of the values in a map
values()ObjectsReturns an iterator object of the values in an object
values()SetsReturns an iterator object of the values in a det
values()Typed ArrayReturns an iterator object of the values in a Typed Array
varStatementsDeclares a variable
warn()ConsoleOutputs a warning message to the console
watchPosition()GeolocationReturns a watch ID
WeakMap()ConstructorsCreates a WeakMap object
WeakSet()ConstructorsCreates a WeakSet object
whichMouseEvent KeyboardEventReturns which mouse button was pressed when the mouse event was triggered
widthScreenReturns the total width of the screen
with()ArrayReturns an array with an updated element
with()Typed ArrayReturns a typed array with an updated element
withResolvers()PromiseReturns an object containing 3 properties: 1. A Promise Object 2. A function that resolves the promise 3. A function that rejects the promise
with()DurationReturns a Duration with properties modified
with()PlainDateReturns a PlainDate with properties modified
with()PlainDateTimeReturns a PlainDateTime with properties modified
with()PlainMonthDayReturns a PlainMonthDay with properties modified
with()PlainTimeReturns a PlainTime with properties modified
with()PlainYearMonthReturns a PlainYearMonth with properties modified
with()ZonedDateTimeReturns a ZonedDateTime with properties modified
withCalendar()PlainDateReturns a PlainDate in a new calendar system
withCalendar()PlainDateTimeReturns a PlainDateTime in a new calendar system
withCalendar()ZonedDateTimeReturns a ZonedDateTime in a new calendar system
withPlainTime()PlainDateTimeReturns a PlainDateTime with the time part replaced
withPlainTime()ZonedDateTimeReturns a ZonedDateTime with the time part replaced
withTimeZone()ZonedDateTimeReturns a ZonedDateTime with in another time zone.
viewEventReturns a reference to the Window object where the event occurred
voidOperatorsEvaluates an expression and returns undefined
whileStatementsMarks a block of statements to be executed while a condition is true
write()HTML DocumentWrites HTML expressions or JavaScript code to a document
writeln()HTML DocumentSame as write(), but adds a newline character after each statement
yieldOperatorsPauses and resumes a generator function
zonedDateTimeISO()Temporal.NowReturns a ZonedDateTime representing the current date and time in the specified time zone

Share

JavaScript Tutorial

Visit Our JavaScript Tutorial