Lecture: JavaScript III

Working with JavaScript

References: Stein, L.D. 'How To Set Up and Maintain a Web Site'
2nd edn, Addison Wesley 1997, Chpt10.

Flanagan, D. 'JavaScript, The Definitive Guide'
2nd edn, O'Reilly & Associates, Inc.




Using JavaScript

  1. Insert JavaScript code between <SCRIPT> and </SCRIPT> tags to be run as the document is loaded.



  2. Use the <SCRIPT> and </SCRIPT> tags to reference a JavaScript .js file

  3. Define event handlers

  4. Define Timer Events




JavaScript Windows




JavaScript Object Hierarchy




JavaScript Examples

These simple examples illustrate some of the ways JavaScript can be used. From simple building blocks, medium programs can be built for all kinds of purposes.




javaScript introduction | javaScript syntax | working with javaScript

lecture notes | home



All material accessed from www.cs(se).monash.edu.au/~aland is
Copyright © 1994-1998 Alan Dorin.
All rights reserved.