• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
 
Copyright
Copyright © 2002 by Sams Publishing
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, withoutwritten permission from the publisher. No patent liability is assumed with respect to the use of theinformation contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liabilityassumed for damages resulting from the use of the information contained herein.Library of Congress Catalog Card Number: 20002104732Printed in the United States of AmericaFirst Printing: June 200205 04 03 02 4 3 2 1
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks have beenappropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or servicemark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but nowarranty or fitness is implied. The information provided is on an "as is" basis.
Credits
Acquisitions Editor
 Scott Meyers
Managing Editor
 Charlotte Clapp
Project Editor
 George E. Nedeff 
Indexer
 
1
 
Mandie Frank 
Proofreader
 Abby VanHuss
Technical Editor
 Philip Karras
Team Coordinator
 Amy Patton
Multimedia Developer
 Dan Scherf 
Interior Designer
 Gary Adair 
Cover Designer
 Aren Howell
Dedication
To my family, and especially Laura. Thanks for all your love and support.
 
About the AuthorMichael Moncur
is a freelance Webmaster and author, and has worked with the Internet sinceGopher was still a cool thing. He wrote
Sams Teach Yourself DHTML in 24 Hours
, and has alsowritten several bestselling books about networking and the CNE and MCSE programs. In his sparetime (about an hour per year) he composes music and builds model rockets.
Acknowledgments
I'd like to thank everyone at Sams for their help with this book, and for the opportunity to write it.In particular, Scott Meyers and Mark Taber helped me get started. Jeff Schultz and Amy Pattonmanaged the project and kept things moving along. George Nedeff, the project editor, managed theediting process. The technical reviewer, Phil Karras, helped keep the writing grounded in reality.
2
 
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
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...