Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced JavaScript

You're reading from   Advanced JavaScript Speed up web development with the powerful features and benefits of JavaScript

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher
ISBN-13 9781789800104
Length 330 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Zachary Shute Zachary Shute
Author Profile Icon Zachary Shute
Zachary Shute
Arrow right icon
View More author details
Toc

DOM Chaining, Navigation, and Manipulation


The Document Object Model (DOM) is an interface for HTML documents. The DOM represents a web page in such a way that programs can change the document structure, style, and content. The DOM is the object-oriented representation of a web page.

There are two standards for the DOM: the World Wide Web Consortium (W3C) standard and the Web Hypertext Application Technology Working Group (WHATWG) standard. WHATWG was developed in response to the slow development of the W3C standard. Both standards define HTML elements as objects that can be accessed by JavaScript code, and properties, accessor methods, and events for all HTML elements. DOM object methods are actions you can perform on HTML elements and DOM object properties are values you can get or set. The DOM standard provides a way for JavaScript to add, get, change, or delete HTML elements programmatically.

Note

The W3C DOM standard and WHATWG DOM standard are implemented by most modern browsers (Chrome...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime