Chapter 4. Handling Data with Variables

In the previous chapter, you saw how to use JavaScript to generate three types of message boxes that you can use for the purposes of inputting and outputting decisions and text. However, the JavaScript you've seen so far isn't very flexible. You type the JavaScript, complete with the messages you want displayed, with no room for anything else. In addition, any text typed into the prompt box is simply lost as soon as OK or Cancel is clicked. In this chapter, you learn how to change this to make JavaScript really work for you!

This chapter teaches you about the following:

Get JavaScript™ 1.5 by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.