The Javascript Pocket Guide

Preparing link to download Please wait... Download

E-Book Overview

JavaScript is an object-oriented scripting language that enables you to modify a document's structure, styling, and content in response to user actions. This handy pocket serves as both a quick introduction to the language and acts a valuable reference. It's packed with tips as well as JavaScript syntax, methods, and properties. Concise and inexpensive, it's exactly the guide many web designers and developers need.

E-Book Content

The JavaScript PocketGuide LennyBurdette Ginormous knowledge, pocket-sized. The JavaScript Pocket Guide Lenny Burdette Peachpit Press 1249 Eighth Street Berkeley, CA 94710 510/524-2178 510/524-2221 (fax) Find us on the Web at: www.peachpit.com To report errors, please send a note to: [email protected] Peachpit Press is a division of Pearson Education. Copyright © 2010 by Lenny Burdette Executive Editor: Clifford Colby Editor: Kim Wimpsett Production Editor: Cory Borman Compositor: David Van Ness Indexer: Jack Lewis Cover Design: Peachpit Press Cover Illustrator: Lenny Burdette and Aren Howell Interior Design: Peachpit Press Notice of Rights All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. For information on getting permission for reprints and excerpts, contact [email protected] Notice of Liability The information in this book is distributed on an “As Is” basis without warranty. While every precaution has been taken in the preparation of the book, neither the author nor Peachpit 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 instructions contained in this book or by the computer software and hardware products described in it. Trademarks Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Peachpit was aware of a trademark claim, the designations appear as requested by the owner of the trademark. All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book. ISBN-13: 978-0-321-70095-7 ISBN-10: 0-321-70095-3 987654321 Printed and bound in the United States of America To my mom and dad About the Author In the seventh grade, Lenny Burdette checked out the book Teach Yourself HTML in 24 Hours from the public library, and the rest, as they say, is history. Since graduating from UCLA, Burdette has worked at Schematic in Los Angeles, California, where he is the reigning Guitar Hero champion. Schematic (http://www.schematic.com) is a digital marking agency that has given him opportunities to develop JavaScript for Web sites, e-commerce platforms, TV, and mobile. Acknowledgments I’d first like to thank Cliff Colby and Bruce Hyslop for the opportunity to write this book as well the faith that I could. Huge thanks go to editor Kim Wimpsett and the rest of the team at Peachpit Press for making the process go more smoothly than I ever imagined it would. Adam Luikart’s feedback and sharp eye were invaluable throughout the writing process. All of my colleagues at Schematic, especially Richard Herrera and the rest of IEG, are a wealth of inspiration and support. Additionally, Nick Rodriguez and Dan Duvall