Transcript Modifying the DOM
The JavaScript Environment • • •
Concept: JavaScript lives within the browser and is presented a series of objects that it can manipulate to: – Construct the user interface – Add interactivity to content in a displayed window – Create and manipulate additional windows Browsers present to JavaScript – Browser Object Model of HTML tags and attributes – Window/Document Model of browser objects JavaScript can find, manipulate, delete, insert HTML tags and attributes.
New HTML 5 - Tags
Purpose
: To make the web pages more semantic friendly
Linking HTML to JavaScript • • Obtrusive
or
Unobtrusive
– Putting script tags immediately before