Document JavaScript

The document comes under the windows object and can also be considered as its property.

JavaScript Document object is an object that provides access to all HTML elements of a document. When an HTML document is loaded into a browser window, then it becomes a document object. The document object stores the elements of an HTML document, such as HTML, HEAD, BODY, and other HTML tags as objects.

Leave a Reply

Your email address will not be published. Required fields are marked *