3493344993433433232
q €
Trang 3PROFESSIONAL JAVASCRIPT FOR WEB DEVELOPERS FOREWORD Shin INTRODUCTION CHAPTER 1 'What ls JavaScrip†? CHAPTER2 JavaScriptin HTML
CHAPTER3 Language Basics
CHAPTER4 Variables, Scope, and Memory
CHAPTER5 ~~ Reference Types
CHAPTER6 = Object-Oriented Programming
CHAPTER 7 Function Expressions
CHAPTER 8 _ The Browser Object Model
CHAPTER9 = Client Detection CHAPTER10 The Document Object Model .
CHAPTER 11 DOM Extensions
CHAPTER12 DOMLevels 2 and 3
CHAPTER13 Events
CHAPTER14 Scripting Forms
Trang 5PROFESSIONAL
Trang 7PROFESSIONAL
JavaScript’ for Web De
Third Edition
Trang 8Professional JavaScript® for Web Developers, Third Edition Published by John Wiley & Sons, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com
Copyright © 2012 by John Wiley & Sons, Inc., Indianapolis, Indiana
Published simultaneously in Canada ISBN: 978-1-118-02669-4 ISBN: 978-1-118-22219-5 (ebk) ISBN: 978-1-118-23309-2 (ebk) ISBN: 978 ~118-26080-7 (ebk) Manufactured in the United States of America 10987654321
No part of this publication may be reproduced, stored in a retrieval system or transmitted in a
electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted t of the 1976 United States Copyright Act, without either the prior written permission of the Pu through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Ros MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission sh
Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (2( 748-6008, or online at http: //www.wiley.com/go/permissions
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representati
respect to the accuracy or completeness of the contents of this work and specifically disclaim a
without limitation warranties of fitness for a particular purpose No warranty may be created
promotional materials The advice and strategies contained herein may not be suitable for ever is sold with the understanding that the publisher is not engaged in rendering legal, accounting, services If professional assistance is required, the services of a competent professional person the publisher nor the author shall be liable for damages arising herefrom The fact that an org:
referred to in this work as a citation and/or a potential source of further information does not
publisher endorses the information the organization or Web site may provide or recommendat readers should be aware that Internet Web sites listed in this work may have changed or disapj
work was written and when it is read