Javascript in the Browser Part 1: BOM, DOM, & Event-Driven

preview_player
Показать описание
Using JavaScript with HTML
window & document object
Document Object Model (DOM)
Tutorial 1: Accessing the DOM
Tutorial 2: Manipulating the DOM
Event-driven Programming
Events and event handlers
Common events
Three ways of registering event handlers with examples of each.
Embed the handler in HTML
Set the DOM node event handler property directly using JavaScript.
Using the JavaScript addEventListener() method to register an event handler for DOM object.
Рекомендации по теме