30 likes | 105 Vues
<p> Sample <b>bold</b> display</p>. firstChild. lastChild. P. parentNode. parentNode. parentNode. nextSibling. nextSibling. #text. #text. B. prevSibling. prevSibling. display. Sample. firstChild, lastChild. parentNode. #text. bold. DOM Coordinates. x. y. offsetTop.
E N D
<p> Sample <b>bold</b> display</p> firstChild lastChild P parentNode parentNode parentNode nextSibling nextSibling #text #text B prevSibling prevSibling display Sample firstChild,lastChild parentNode #text bold CS 142 Lecture Notes: DOM
DOM Coordinates x y offsetTop offsetParent offsetLeft offsetTop offsetLeft offsetHeight offsetParent offsetWidth CS 142 Lecture Notes: DOM