Java Reference
In-Depth Information
Introduction to JavaScript
and the Web 
What You Will learn in this Chapter:
Adding JavaScript to your web pages
Referencing external JavaScript files
Changing the background color of a web page
Wrox.Com Code doWnloads for this Chapter
You can find the wrox.com code downloads for this chapter at http://www.wiley.com/go/
BeginningJavaScript5E o n the Download Code tab. You can also view all of the examples
and related files at http://beginningjs.com .
In this introductory chapter, you look at what JavaScript is, what it can do for you, and what
you need in order to use it. With these foundations in place, you will see throughout the rest of
the topic how JavaScript can help you to create powerful web applications for your website.
The easiest way to learn something is by actually doing it, so throughout the topic you create
a number of useful example programs using JavaScript. This process starts in this chapter, by
the end of which you will have created your first piece of JavaScript code.
introduCtion to JavasCript
In this section you take a brief look at what JavaScript is, where it came from, how it works,
and what sorts of useful things you can do with it.
 
Search WWH ::




Custom Search