![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() HTML DOM
HTML DOM
A W3C Document object model standard
A W3C Document object model standard
Used to identify various components or
Used to identify various components or
properties of a web page
properties of a web page
Ex) document.body.bgcolor
Ex) document.body.bgcolor
= yellow
= yellow
Use ID tags to reference specific elements
Use ID tags to reference specific elements
Ex) <h1 id="myHeader"
Ex) <h1 id="myHeader"
onclick=JS_Function()">Header
onclick=JS_Function()">Header
Text</h1>
Text</h1>
|