Table of Contents


learn how to program using any web browser
Learn How to Program Using Any Web Browser
byHarold Davis ISBN:1590591135
Apress 2004

This text outlines the general principles of good programming practice for complete novices. It teaches modern computer programming and explains concepts such as object-oriented programming so that everyone can understand them.

Table of Contents
Learn How to Program Using Any Web Browser
Foreword
Chapter 1 - Getting Started
Chapter 2 - Understanding Types, Variables, and Statements
Chapter 3 - Using Conditional Statements
Chapter 4 - Working with Loops
Chapter 5 - Understanding Functions
Chapter 6 - Programming with Arrays
Chapter 7 - Working with Objects
Chapter 8 - Understanding Events and Event-Driven Programming
Chapter 9 - Manipulating Strings
Chapter 10 - Debugging and Exceptions
Chapter 11 - Programming with JavaScript
Index
List of Figures
List of Tables
List of Examples
List of Sidebars


  • For complete novices
  • No special equipment or software needed beyond a Web browser
  • Teaches principles of good programming practice
  • Lots of fun!

Learn How to Program Using Any Web Browser is a book about general principles of good programming practice for complete novices. If you're a teen or someone who is just starting to get curious about what makes a computer work, or an office worker who has been using computer applications for years and would like to spend some time looking deeper into what makes them tick, then this book is for you.

Learn How to Program Using Any Web Browser teaches the basics of programming using JavaScript. JavaScript, a modern programming language, can be written using any text editor and displayed in almost any web browser, regardless of the operating system. In the process, author Harold Davis discusses modern computer programming principles and explains concepts such as object-oriented programming in an easy-to-understand manner.

About the Author

Harold Davis is a technology consultant, hands-on developer, and author of many books. Harold has consulted for Fortune 1000 technology companies, Internet startups, and web infrastructure players. He has been a VP of strategic development at YellowGiant Corporation, a technical director at Vignette Corporation, and a principal in the e-commerce practice at Informix Software. He's worked in many languages and environments, and he's been a lead programmer and/or architect in projects for corporations, including Chase Manhattan Bank, Nike, and Viacom. His books on programming and the web include Programming C# .NET, Programming Visual Basic .NET, The Wi-Fi Experience: Wireless Networking with 802.11b, Red Hat Linux 6: Visual QuickPro Guide, Web Developer's Secrets, Delphi Power Toolkit, and more. He has a bachelor's degree in computer science and mathematics from New York University and a J.D. from Rutgers School of Law.



Learn How to Program Using Any Web Browser

Harold Davis

Apress

Copyright 2004 by Harold Davis

All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.

ISBN (pbk): 1-59059-113-5

Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.

  • Technical Reviewer: Beth Christmas

  • Editorial Board: Dan Appleman, Craig Berry, Gary Cornell, Tony Davis, Steven Rycroft, Julian Skinner, Martin Streicher, Jim Sumser, Karen Watterson, Gavin Wray, John Zukowski

  • Assistant Publisher: Grace Wong

  • Copy Editor: Kim Wimpsett

  • Production Manager: Kari Brooks

  • Proofreader: Carol Burbo

  • Compositor and Artist: Diana Van Winkle, Van Winkle Design

  • Indexer: Michael Brinkman

  • Interior and Cover Designer: Kurt Krames

  • Manufacturing Manager: Tom Debolski

Distributed to the book trade in the United States by Springer-Verlag New York, Inc., 175 Fifth Avenue, New York, NY 10010 and outside the United States by Springer-Verlag GmbH & Co. KG, Tiergartenstr. 17, 69112 Heidelberg, Germany.

In the United States: phone 1-800-SPRINGER, email <orders@springer-ny.com>, or visit http://www.springer-ny.com. Outside the United States: fax +49 6221 345229, email <orders@springer.de>, or visit http://www.springer.de.

For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710. Phone 510-549-5930, fax 510-549-5939, email <info@apress.com>, or visit http://www.apress.com.

The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.

The source code for this book is available to readers at http://www.apress.comin the Downloads section. You will need to answer questions pertaining to this book in order to successfully download the code.

Dedication

For the next generation of potential programmers in my family: Peter, Emma, David, Steven, Julian, and Nicholas

About the Author

Harold Davis is a strategic technology consultant, hands-on programmer, and the author of many well-known books.

His books on programming and technology topics include Red Hat Linux 9:Visual QuickPro Guide (Peachpit Press, 2003), Visual Basic .NET for Windows:Visual QuickStart Guide (Peachpit Press, 2003), Visual C# .NET Programming (Sybex, 2002), Visual Basic .NET Programming (Sybex, 2002), The Wi-Fi Experience: Everyone’s Guide to 802.11b Wireless Networking (Que, 2001), Visual Basic 6:Visual QuickStart Guide (Peachpit Press, 1999), Red Hat Linux 6:Visual QuickPro Guide (Peachpit Press, 1999), Visual Basic 6 Secrets (IDG Books, 1998), Visual Basic 5 Secrets (IDG Books, 1997), Visual Basic 4 Secrets (IDG Books, 1996), Web Developer’s Secrets (IDG Books, 1997), and Delphi Power Toolkit: Cutting-Edge Tools & Techniques for Programmers (Ventana, 1995).

In addition to technical books, Harold has written about a wide range of topics, from art and photography to business and the stock market. His Publishing Your Art As Cards, Posters & Calendars (Second Edition: Consultant Press, 1996) is the definitive work on the topic and has been in print for more than 20 years.

Harold has served as a technology consultant for many important businesses, including investment funds, technology companies, and Fortune 500 corporations. In recent years, he was vice president of Strategic Development at YellowGiant Corporation, chief technology officer at an expert systems company, a technical director at Vignette Corporation, and a principal in the e-commerce practice at Informix Software.

Harold started programming when he was a child. He has worked in many languages and environments and has been lead programmer and/or architect in projects for many corporations, including Chase Manhattan Bank, Nike, and Viacom.

Harold was a professional photographer for 15 years, and he maintained a studio in New York City. His photographs have been widely exhibited and published. While a professional photographer, he founded Wilderness Studio, a national distributor of posters and greeting cards.

He has earned a bachelor’s degree in Computer Science and Mathematics from New York University and a doctor’s of jurisprudence degree from Rutgers Law School, where he was a member of the law review.

Harold lives with his wife, Phyllis Davis, who is also an author, and their two sons, Julian and Nicholas, in the hills of Berkeley, California. In his spare time he enjoys hiking, gardening, and collecting antique machines including typewriters and calculation devices.

Acknowledgments

First and foremost, thanks go to my friend Gary Cornell, whose idea this book was. Thanks, Gary, for believing in me! Second, great thanks go to Grace Wong, without whom this book wouldn’t exist in its current form (dare I say this is true of most Apress books?).

I also owe a debt of gratitude to Beth Christmas, Martin Davis, and Phyllis Davis, each of whom read this book carefully in manuscript and made many helpful suggestions.