Lecture: JavaScript I

JavaScript Introduction

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.


JavaScript is not Java!


HAL, the starship's computer is behaving strangely. He has killed all the ship's crew except for you. In an emergency (like now) hit this panic button.

ALERT!
ALERT!

There, now that's not so bad is it? You just asked your browser to execute some JavaScript.




Implementing the Panic Button using JavaScript.

  1. The source <HEAD> of this document (have a look!) contains some code.

  2. The source <BODY> of this document (have a look too!) contains some code.



  3. This is about as interesting (and as useful) as a "Hello World" programme!





Dave: Open the pod bay door HAL!

HAL: I'm sorry Dave, I can't do that.



Did you de-activate HAL? Or are you doomed to be de-activated yourself?

Time now to have a look at the JavaScript Syntax.




javaScript introduction | javaScript syntax

lecture notes | home



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