JavaScript introduction

History
A good reference is JavaScript: How Did We Get Here?, Web Development DevCenter (04/06/2001)
Also, My 10 Favorite Scripts, by Al Williams

Basic structure
<script type="text/javascript" >
<!-- Hide script from older browsers
Add script here
// end hiding -->
</script>


Notes:
1. Code can be placed in two places: within <head> tag or within <body> tag.
2. The script can be hidden by placing it in a file called script.js and using src="script.js" instead of language in the <head>.


Samples of JavaScript code involving the document, window, and navigator objects.

Document
Last Modified - writing a property to a page. The code
Image Rollovers - using Events, functions. The code
Window
Alert boxes - Don't use. The code
New Windows - in various sizes and shapes. The code
Navigator
Detecting if Java is enabled in browser. The code
Browser properties. The code
Designing Effective Banner Ads article and the JavaScript code.