Animations
API
Arrays
Async
Basics
Challenges
Classes
Console
Dates
Debugging
DOM Elements
DOM Methods
DOM Properties
Event Listeners
Flow Control
Forms
Functions
Global Functions
JSON
Keywords
Libraries (3rd party)
Math
Modules
Objects
Snippets
String
Types
Widgets
Window Object
Here's a basic list of Document Object Methods:
Document.anchors |
Returns all elements that have a name attribute |
document.baseURI |
Returns the absolute base URI of the document |
Document.body |
Returns the <body> element |
Document.cookie |
Returns the document's cookie |
Document.doctype |
Returns the document's doctype |
document.documentElement |
Returns the <html> element |
document.documentURI |
Returns the URI of the document |
Document.domain |
Returns the domain name of the document server |
document.getElementById({id}) |
Find an element by element id |
document.getElementById({id}) |
Find an element by element id |
document.getElementsByTagName({tag name}) |
Returns a List. Find elements by tag name |
document.getElementsByClassName({class name}) |
Returns a List. Find elements by class name |
document.images |
Returns all <img> elements |
document.inputEncoding |
Returns the document's encoding (character set) |
document.lastModified |
Returns the date and time the document was updated |
document.scripts |
Returns all <script> elements |
Document.title |
Returns the <title> element |
document.URL |
Returns the complete URL of the document |
https://www.w3schools.com/js/js_htmldom_document.asp