I am grateful to everyone involved with previous editions of this book, including David Mayhew,Sean Medlock, Susan Hobbs, and Michelle Wyner. I'd also like to thank David and SherryRogelberg and the rest of the team at Studio B for their help throughout this project.Finally, personal thanks go to my wife, Laura, my parents, Gary and Susan Moncur, the rest of thefamily (not to forget Matt, Melanie, Ian, and Kristen) and my friends, particularly Chuck Perkins,Matt Strebe, Cory Storm, Robert Parsons, Dylan Winslow, Scott Durbin, Ray Jones, James Chellis,Curt Siffert, Richard Easlick, and Henry J. Tillman. I couldn't have done it without your support.
Introduction
The World Wide Web began as a simple repository for information, but it has grown into muchmore—it entertains, teaches, advertises, and communicates. As the Web has evolved, the tools havealso evolved. Simple markup tools such as
HTML
have been joined by true programming languages —including JavaScript. Now don't let the word "programming" scare you. For many, the term conjures up images of longnights staring at the screen, trying to remember which sequence of punctuation marks will producethe effect you need. (Don't get me wrong. Some of us enjoy that sort of thing.)Although JavaScript is programming, it's a very simple language. As a matter of fact, if you haven't programmed before, it makes a great introduction to programming. It requires very little knowledgeto start programming with JavaScript—you'll write your first program in Hour 2, "Creating aSimple Script."If you can create a Web page with
HTML
, you can easily use JavaScript to improve a page.JavaScript programs can range from a single line to a full-scale application. In this book, you'll startwith simple scripts, and proceed to complex applications, such as a card game.If you've spent much time developing pages for the Web, you know that the Web is constantlychanging, and it can be hard to keep up with the latest languages and tools. This book will help youadd JavaScript to your Web development toolbox, and I think you'll enjoy learning it.I really had fun writing this book—and believe it or not, writing isn't always fun. I hope you'll haveas much fun as you experiment with JavaScript and its capabilities
Part I: Getting Started
Hour
1 Understanding JavaScript
2 Creating a Simple Script
3 How JavaScript Programs Work
Hour 1. Understanding JavaScript
3
Leave a Comment
http://www.scribd.com/ketan_joshi