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 R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

JS Reference

JS by Category JS by Alphabet

JavaScript

JS Arrays JS Boolean JS Classes JS Dates JS Error JS Global JS JSON JS Maps JS Math JS Numbers JS Objects JS Operators JS Precedence JS Promises JS RegExp JS Sets JS Statements JS Strings JS TypedArray

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>

Other References

CSSStyleDeclaration JS Conversion


JavaScript Reference


Alphabetical JavaScript Reference

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