lecture19

lecture19 - PIC 40A Lecture 19 More JSEE JavaScript DOM...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
PIC 40A Lecture 19: More JSEE, JavaScript DOM
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Document Object • represents the XHTML document displayed by a client browser • used to access all XHTML document elements as objects
Background image of page 2
Some Document Properties • Special arrays of DOM objects anchors (the <a> elements) forms (the <form> elements) images (the <img> elements) links (the <link> elements)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
More Document Properties • body (DOM address for body element) • cookie (sets or returns all doc cookies) • domain (the doc server’s domain name) • lastModified (not W3C approved) • referrer (returns URL of doc that loaded current doc) • title (title of the document) • URL (URL of the document)
Background image of page 4
Some Document Methods • open() (opens a doc for writing) • write() (writes a string to opened doc) • writeln() (writes, appends a newline) • close() (closes output stream and displays sent data) • getElementById() (a single element) • getElementsByName() (array of elts) • getElementsByTagName() (array of elts)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Document Object Model (DOM) • a browser's representation of its document in memory • models a document as a tree of
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/15/2010 for the course PIC 40A taught by Professor Ouellette during the Winter '10 term at UCLA.

Page1 / 19

lecture19 - PIC 40A Lecture 19 More JSEE JavaScript DOM...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online