What can JavaScript programs do?
* Giving the user more control over the browser
* Detecting the user's browser, OS, screen size, etc.
* Performing simple computations on the client side
* Validating the user's input
* Handling dates and time
* Generating HTML pages on-the-fly without accessing the Web server.