Scripting Documents
Javascript the Definitive Guide by David Flanagan

CpSc 217 - Structured and Dynamic Web Programming

The notes found on these pages all reference the textbook given above. Unless otherwise stated, the citation of the information on these web pages is that text.


Part 1 - Document Structure and traversal


Recall "get" methods


Tree of Nodes


Part 2 - Forms



Using setTimeout (and setInterval) can be used for animating. SetInterval isn't very reliable, though.


Part 3 - Dynamic Change to document Structure


Creating, Inserting, and Deleting Nodes


Document and Element Geometry and Scrolling