JavaScript Document Properties
You are Here:
JavaScript Document Properties
The following are the list of Document properties available in JavaScript programming.
Functions | Explanation |
---|---|
anchors | Returns the data related to the anchors in the current document. |
body | Gets or sets the document's body. |
characterSet | Returns the character encoding of the document that it's currently rendered with. |
compatMode | Returns whether the document is rendered in Quirks mode or Standards mode. |
contentType | Returns the MIME type that the document is being rendered as. |
doctype | Returns the Document Type Declaration (DTD) associated with current document. |
documentElement | Returns the Element that is the root element of the document. |
documentMode | Returns the mode used by the browser to render the current document. |
documentURI | Returns the document location as a string. |
embeds | Returns the data related to the embeds in the current document. |
fonts | Returns the FontFaceSet interface of the document. |
forms | Returns the data related to the forms in the current document. |
head | Returns the data related to the <head> tag in the current document. |
hidden | Returns a Boolean value that indicates whether the current page is hidden or not. |
images | Returns the data related to the images in the current document. |
implementation | Returns a DOMImplementation object associated with the current document. |
lastStyleSheetSet | Returns the last enabled style sheet set. |
links | Returns the data related to the <area> and <a> in the current document with a value for the href attribute. |
plugins | Returns the data related to the plugins (<embed>) in the current document. |
preferredStyleSheetSet | Returns the preferred style sheet set as specified by the page author. |
scripts | Returns the data related to the <script> tag in the current document. |
scrollingElement | Returns a reference to the Element that scrolls the document. |
selectedStyleSheetSet | Indicates the name of the style sheet set that's currently in use. |
styleSheetSets | Returns a list of all style sheet sets available on the document. |
cookie | Lets you read and write cookies associated with the document. |
defaultView | Returns a reference to the window object. |
designMode | Controls whether the entire document is editable. |
dir | Gets or sets the value of the dir attribute of a document. |
domain | Gets or sets the domain portion of the origin of the current document. |
lastModified | Returns the current date and time. |
location | Returns the URI of the current document. |
readyState | Describes the loading state of the document. |
referrer | Returns the URI of the page that linked to this page. |
title | Gets or sets the current title of the document. |
URL | Returns the document location (URL) as a string. |
activeElement | Returns the data related to the Element within the DOM or shadow DOM tree that currently has focus. |
fullscreenElement | Returns the Element that is currently being presented in full-screen mode in this document. |
pointerLockElement | Returns the element set as the target for mouse events while the pointer is locked. |
styleSheets | Returns a StyleSheetList of CSSStyleSheet objects, for stylesheets explicitly linked into, or embedded in a document. |
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.