Javascript

JavaScript Intro

JavaScript Intro Quiz

JavaScript Intro Exercise

JavaScript Basic

JavaScript Basic Quiz

JavaScript Basic Exercise

JavaScript Advance

JavaScript Advance Quiz

JavaScript Advance Exercise

JavaScript ES6

JavaScript ES6 Quiz

JavaScript ES6 Exercise

JavaScript Array Methods and Properties

JavaScript String Methods and Properties

JavaScript Number Methods and Properties

JavaScript Math Properties and Methods

JavaScript Date Methods and Properties

JavaScript Global Methods and Properties

JavaScript RegExp Properties and Methods

JavaScript Class Methods and Keywords

JavaScript Errors, JSON and Booleans

JavaScript Statements

JavaScript Window History Object Properties and Methods

JavaScript Window Location Object Properties and Methods

JavaScript Window Screen Object Properties

JavaScript Window Navigator Object Properties and Methods

JavaScript Window Object Properties and Methods

JavaScript Console Object Methods

JavaScript Geolocation and Storage APIs

JavaScript CSSStyleDeclaration Object Methods and Properties

HTML DOM Documents Object Properties and Methods

DOM HTMLCollection Properties and Methods

HTML DOM Attributes Properties and Methods

HTML DOM Elements Properties and Methods

HTML DOM Style Object Properties

HTML DOM AnimationEvent Properties and Methods

HTML DOM ClipboardEvent Properties and Methods

HTML DOM DragEvent Properties and Methods

HTML DOM FocusEvent Properties and Methods

HTML DOM HashChangeEvent Properties and Methods

HTML DOM InputEvent Properties and Methods

HTML DOM KeyboardEvent Properties and Methods

HTML DOM MouseEvent Properties and Methods

HTML DOM PageTransitionEvent Properties and Methods

HTML DOM ProgressEvent Properties and Methods

HTML DOM StorageEvent Properties and Methods

HTML DOM TransitionEvent Properties and Methods

HTML DOM WheelEvent Properties and Methods

HTML DOM UiEvent Properties and Methods

HTML DOM TouchEvent Properties and Methods

The Event Object Properties and Methods

HTML DOM Documents Object Properties and Methods

List of HTML DOM Documents Object Properties and Methods

HTML DOM activeElement Property
The activeElement property is used to return the HTML element that is in focus. It is a read-only property.
HTML DOM Document addEventListener() Method
The addEventListener() method is used for attaching an event handler to a document. We can attach the event to every element in the HTML Document.
HTML DOM Document adoptNode() Method
The adoptNode() method is used for adopting nodes from another document. We can assume nodes of any type. When it gets adopted, it also adopts all of its children.
HTML DOM Document baseURI Property
The baseURI property is used to return the base URI of the document. It is read-only property.
HTML DOM Document body property
The body property is used to either return or set a document body element. If we used it for setting purpose it may overwrites the whole body content.
HTML DOM Document characterSet property
The characterSet property is used for returning the character encoding for a document.
HTML DOM Document close() Method
The close() method is used for closing windows previously opened with the open() method. Also, the document.open() method is used for clearing everything in the document i.e, it will overwrite.
HTML DOM Document cookie Property
The cookie property is used for either setting or returning document cookies. It will return the cookie in the form of a semicolon-separated list in key=value pairs.
HTML DOM Document createAttribute() Method
The createAttribute() method is used for creating an attribute and it will return it in the form of an Attr object.
HTML DOM Document createComment() Method
The createComment() method is used for creating a comment and it will return the comment node.
HTML DOM Document createDocumentFragment() Method
The createDocumentFragment() method is used for creating offscreen node. It is used for building new document fragment that can be inserted into any document.
HTML DOM Document createElement() Method
The createElement() method is used for creating an element node.
HTML DOM Document createEvent() Method
The createEvent() method is used for creating an event object. It must be initialized before use and must be legal.
HTML DOM Document createTextNode() Method
The createTextNode() method is used for creating a text node. All HTML elements, attributes, and texts are basically nodes.
HTML DOM Document defaultView Property
The defaultView property is used to return the document window object.
HTML DOM Document designMode Property
The designMode property is used to either set or return if the document is editable.
HTML DOM Document doctype Property
The doctype property is used to return a document doctype in the DocumentType object. It is a read-only property and it returns null if the doctype property is missing.
HTML DOM Document documentElement Property
The documentElement property is used to return the document element. Its returned object is html element and is read-only property.
HTML DOM Document documentURI property
The documentURI property is used to either set or return the document location. If the document is created in memory then it will return null. It can be used with any document type.
HTML DOM Document domain Property
The domain property is used to return the name of the domain of the server from where the document is loaded. If the document is created in memory then it will return null.
HTML DOM Document embeds Property
The embeds property is used to return a collection of all embed elements in the document and it is read-only property.
HTML DOM Document forms Property
The forms property is used to return the collection of all form elements in a document. It is a read-only property and returns HTMLCollection.
HTML DOM Document getElementById() Method
The getElementById() method is used to return an element with a specified id. It returns null if the element does not exist.
HTML DOM Document getElementsByClassName() Method
The getElementsByClassName() method is used to return collection of elements with a specific class. It is read-only property and returns HTMLCollection.
HTML DOM Document getElementsByName() Method
The getElementsByName() method is used to return collection of elements with specific name. It returns is NodeList. The nodes in the list can be accessed by index and start at 0.
HTML DOM Document getElementsByTagName() Method
The getElementsByTagName() method is used to return collection of all elements with a specific tag name. It returns is HTMLCollection and is read-only property.
HTML DOM Document hasFocus() Property
The hasFocus() method is used to return true if the document has focus or any of its elements has focus. Otherwise, it will return false.
HTML DOM Document head Property
The head property is used to return the head element of the document. If no head element is specified then it will return empty and if more than one is specified then it will return only the first one.
HTML DOM Document images Property
The images property is used to return collection of all img elements in a given document. It is read-only property and returns HTMLCollection.
HTML DOM Document implementation Property
The implementation property is used to return the DOMimplementation object that handles the document.
HTML DOM Document importNode() Property
The importNode() method is used for importing a node from another document. By settings its 2nd parameter to true, we can also import its child. The imported node is just a copy.
HTML DOM Document lastModified Property
The lastModified property is used to return the date and time at which the document was last modified. it is a read-only property.
HTML DOM Document links Property
The links property is used to return collection of all links in the current document. It is a read-only property and returns HTMLCollection.
HTML DOM Document normalize() Property
The normalize() method is used for removing empty text nodes and joining adjacent text nodes.
HTML DOM Document open() Method
The open() method is used for opening the document for writing. Due to this, all existing documents will be cleared. It is not the same as window.open() which is used for opening a new widow.
HTML DOM Document querySelector() Method
The querySelector() method is used to return the first element that matches the CSS selector. For returning all matches, we have to use querySelectorAll(). It will throw an SYNTAX_ERR exception if selectors are invalid.
HTML DOM Document querySelectorAll() Method
The querySelectorAll() method is used to return all elements that match a CSS selector. It will return a NodeList. It will throw SYNTAX_ERR exception if selectors are invalid.
HTML DOM Document readyState Property
The readyState property is used to return the status of the current document. It is read-only property.
HTML DOM Document referrer Property
The referrer property is used to return URL of the document that loaded the current document. It is read-only property.
HTML DOM Document removeEventListener() Method
The removeEventListener() method is used for removing an event handler from a document.
HTML DOM Document scripts Property
The scripts property is used to return the collection of all script elements in the document. It is a read-only property and returns HTMLCollection.
HTML DOM Document title Property
The title property is used to either set or return the title of the document.
HTML DOM Document URL Property
The URL property is used to return the full URL of the document.
HTML DOM Document write() Method
The write() method is used to write directly to an HTML document stream. It will delete everything on the existing HTML when used together with loaded document.
HTML DOM Document writeln() Property
The writeln() method is used to write directly to an HTML document stream. However, it will add a newline character after each statement.