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

JS Reference

JS by Category JS by Alphabet

JavaScript

JS Arrays JS Boolean JS Classes JS Dates JS Function JS Error JS Global JS Intl Namespace JS Iterators JS JSON JS Maps JS Math JS Numbers JS Objects JS Operators JS Assignment JS Arithmetic JS Comparison JS Logical Operators JS Bitwise Operators JS Misc Operators JS Precedence JS Promises JS Proxy JS Reflect JS RegExp Patterns JS RegExp Reference JS Sets JS Statements JS Strings JS Typed Arrays JS Typed Reference

Temporal

Temporal Objects New Temporal.Duration Temporal.Instant Temporal.Now Temporal.PlainDate Temporal.PlainDateTime Temporal.PlainMonthDay Temporal.PlainTime Temporal.PlainYearMonth Temporal.ZonedDate

Window

Window Object Window Console Window History Window Location Window Navigator Window Screen

HTML DOM

HTML Documents HTML Elements HTML Attributes HTML Collection HTML NodeList HTML DOMTokenList HTML Styles
alignContent alignItems alignSelf animation animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationTimingFunction animationPlayState background backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPosition backgroundRepeat backgroundSize backfaceVisibility border borderBottom borderBottomColor borderBottomLeftRadius borderBottomRightRadius borderBottomStyle borderBottomWidth borderCollapse borderColor borderImage borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeft borderLeftColor borderLeftStyle borderLeftWidth borderRadius borderRight borderRightColor borderRightStyle borderRightWidth borderSpacing borderStyle borderTop borderTopColor borderTopLeftRadius borderTopRightRadius borderTopStyle borderTopWidth borderWidth bottom boxShadow boxSizing captionSide caretColor clear clip color columnCount columnFill columnGap columnRule columnRuleColor columnRuleStyle columnRuleWidth columns columnSpan columnWidth counterIncrement counterReset cssFloat cursor direction display emptyCells filter flex flexBasis flexDirection flexFlow flexGrow flexShrink flexWrap font fontFamily fontSize fontStyle fontVariant fontWeight fontSizeAdjust height isolation justifyContent left letterSpacing lineHeight listStyle listStyleImage listStylePosition listStyleType margin marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth objectFit objectPosition opacity order orphans outline outlineColor outlineOffset outlineStyle outlineWidth overflow overflowX overflowY padding paddingBottom paddingLeft paddingRight paddingTop pageBreakAfter pageBreakBefore pageBreakInside perspective perspectiveOrigin position quotes resize right scrollBehavior tableLayout tabSize textAlign textAlignLast textDecoration textDecorationColor textDecorationLine textDecorationStyle textIndent textOverflow textShadow textTransform top transform transformOrigin transformStyle transition transitionProperty transitionDuration transitionTimingFunction transitionDelay unicodeBidi userSelect verticalAlign visibility width wordBreak wordSpacing wordWrap widows zIndex

HTML Events

HTML Events HTML Event Objects HTML Event Properties HTML Event Methods

Web APIs

API Canvas API Console API Fetch API Fullscreen API Geolocation API History API MediaQueryList API Storage API Validation API Web

HTML Objects

<a> <abbr> <address> <area> <article> <aside> <audio> <b> <base> <bdo> <blockquote> <body> <br> <button> <canvas> <caption> <cite> <code> <col> <colgroup> <datalist> <dd> <del> <details> <dfn> <dialog> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <footer> <form> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <ins> <input> button <input> checkbox <input> color <input> date <input> datetime <input> datetime-local <input> email <input> file <input> hidden <input> image <input> month <input> number <input> password <input> radio <input> range <input> reset <input> search <input> submit <input> text <input> time <input> url <input> week <kbd> <label> <legend> <li> <link> <map> <mark> <menu> <menuitem> <meta> <meter> <nav> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <s> <samp> <script> <section> <select> <small> <source> <span> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <textarea> <time> <title> <track> <u> <ul> <var> <video>

Other References

CSSStyleDeclaration JS Conversion


JavaScript Reference


Alphabetical JavaScript Reference

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


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.

-->