/
CS 142 Lecture Notes: DOM CS 142 Lecture Notes: DOM

CS 142 Lecture Notes: DOM - PowerPoint Presentation

karlyn-bohler
karlyn-bohler . @karlyn-bohler
Follow
369 views
Uploaded On 2018-09-20

CS 142 Lecture Notes: DOM - PPT Presentation

Slide 1 ltpgt Sample ltbgtboldltbgt displayltpgt P B text text nextSibling prevSibling nextSibling prevSibling firstChild lastChild parentNode parentNode parentNode ID: 672851

notes lecture 142 dom lecture notes dom 142 parentnode slide text offsetparent lastchild offsettop offsetleft firstchild prevsibling nextsibling display

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "CS 142 Lecture Notes: DOM" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

CS 142 Lecture Notes: DOM

Slide 1

<p> Sample <b>bold</b> display</p>

P

B

#text

#text

nextSibling

prevSibling

nextSibling

prevSibling

firstChild

lastChild

parentNode

parentNode

parentNode

Sample

display

#text

bold

firstChild,

lastChild

parentNode

nodeName

propertySlide2

CS 142 Lecture Notes: DOM

Slide 2

Dialogs

alert("Please click to continue");

if (confirm

("Are you sure you want ...?") { ...}

name = prompt

("Enter username here:");Slide3

CS 142 Lecture Notes: DOM

Slide 3

DOM Coordinates

x

y

offsetParent

offsetParent

offsetTop

offsetLeft

offsetLeft

offsetTop

offsetWidth

offsetHeight

div1

div2

div3Slide4

CS 142 Lecture Notes: CookiesSlide 4