JavaScript Demystified / Edition 1

JavaScript Demystified / Edition 1

by Jim Keogh
ISBN-10:
007226134X
ISBN-13:
9780072261349
Pub. Date:
05/26/2005
Publisher:
McGraw Hill LLC
ISBN-10:
007226134X
ISBN-13:
9780072261349
Pub. Date:
05/26/2005
Publisher:
McGraw Hill LLC
JavaScript Demystified / Edition 1

JavaScript Demystified / Edition 1

by Jim Keogh
$31.0 Current price is , Original price is $31.0. You
$31.00 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores
  • SHIP THIS ITEM

    Temporarily Out of Stock Online

    Please check back later for updated availability.


Overview

Even if you have no programming experience, you'll learn to create dynamic, interactive Web pages with help from this easy-to-use, self-teaching guide. Author and programming instructor Jim Keogh covers the basics of this leading Web development language and explains how to write cross-browser JavaScript programs in no time.

Product Details

ISBN-13: 9780072261349
Publisher: McGraw Hill LLC
Publication date: 05/26/2005
Series: Demystified
Pages: 375
Product dimensions: 7.30(w) x 9.10(h) x 0.81(d)

About the Author

Jim Keogh (Ridgefield Park, NJ) is on the faculty of Columbia University and Saint Peter's College in Jersey City, New Jersey. He developed the e-commerce track at Columbia University. Keogh has spent decades developing applications for major Wall Street corporations and is the author of more than 60 books, including J2EE: The Complete Reference, Java Demystified, ASP.NET Demystified, Data Structures Demystified, XML Demystified, and others in the Demystified series.

Table of Contents

Introductionxv
Chapter 1An Inside Look at JavaScript1
Answers to Common Questions About JavaScript2
JavaScript: A Limited-Featured Programming Language3
Getting Down to JavaScript4
Object Name4
Property5
Methods5
The Dot Syntax6
The Main Event6
Writing Your First JavaScript7
"Old Timers" Don't Like JavaScript10
Spicing Up Your JavaScript11
Looking Ahead12
Quiz12
Chapter 2Variables, Operators, and Expressions15
Values and Variables16
Values16
Variables17
Operators and Expressions24
Parts of an Expression24
Multiple Operations24
Types of Operators25
Looking Ahead40
Quiz40
Chapter 3Condition Statements43
if Statement45
The if Statement in Action45
The if...else Statement46
The if...else if Statement48
Other Variations of the if Statement52
Nested if Statement53
Identifying a Browser55
switch...case Statement58
Loop Statement62
The for Loop62
The for in Loop66
The while Loop68
The do...while Loop70
continue71
Looking Ahead72
Quiz73
Chapter 4Arrays75
What Is an Array?75
Declaring an Array76
Initializing an Array77
Defining Array Elements78
How Many Elements Are in the Array?79
Looping the Array80
Adding an Array Element82
Sorting Array Elements83
Making a New Array from an Existing Array84
Combining Array Elements into a String87
Changing Elements of the Array90
Looking Ahead91
Quiz92
Chapter 5Functions95
What Is a Function?96
Defining a Function96
Writing a Function Definition98
Adding Arguments99
The Scope of Variables and Arguments100
Calling a Function101
Calling a Function Without an Argument102
Calling a Function with an Argument103
Calling a Function from HTML104
Functions Calling Another Function108
Returning Values from a Function109
Looking Ahead113
Quiz114
Chapter 6Strings117
Why Manipulate a String?117
Joining Strings118
Finding Your Way Around a String120
Dividing Text123
Copying a Substring125
Converting Number and Strings129
Numbers to Strings130
Changing the Case of the String131
Strings and Unicode132
Looking Ahead132
Quiz133
Chapter 7Forms and Event Handling135
Building Blocks of a Form136
Elements and JavaScript136
Responding to Form Events137
Form Objects and Elements141
Time-Saving Shortcut143
Changing Attribute Values Dynamically144
Changing Elements Based on a Value Selected by the User146
Changing an Option List Dynamically148
Evaluating Check Box Selections151
Manipulating Elements Before the Form Is Submitted153
Using Intrinsic JavaScript Functions155
Changing Labels Dynamically156
Disabling Elements159
Read-Only Elements161
Looking Ahead162
Quiz163
Chapter 8Cookies165
Cookie Basics166
Creating a Cookie167
Reading a Cookie169
Setting the Expiration Date171
Deleting a Cookie172
Personalizing an Experience Using a Cookie174
Looking Ahead176
Quiz176
Chapter 9Browser Windows179
Open the Window, Please!180
Giving the New Window Focus182
Placing the Window into Position on the Screen184
Changing the Contents of a Window186
Closing the Window187
"Magically" Scrolling a Web Page190
Opening Multiple Windows at Once191
Creating a Web Page in a New Window192
Looking Ahead195
Quiz196
Chapter 10Regular Expressions199
What Is a Regular Expression?200
The Language of a Regular Expression201
Finding Nonmatching Characters204
Entering a Range of Characters205
Matching Digits and Nondigits205
Matching Punctuation and Symbols206
Matching Words206
Replace Text Using a Regular Expression207
Replacing Like Values208
Return the Matched Characters209
The Telephone Number Match210
Regular Expression Object Properties213
Looking Ahead214
Quiz215
Chapter 11JavaScript and Frames217
You've Been Framed!218
Invisible Borders220
Calling a Child Window's JavaScript Function222
Changing the Content of a Child Window223
Changing the Focus of a Child Window226
Writing to a Child Window from a JavaScript226
Accessing Elements of Another Child Window228
Looking Ahead228
Quiz229
Chapter 12Rollovers231
Setting the Stage232
Creating a Rollover234
Text Rollovers237
Multiple Actions for a Rollover239
More Efficient Rollovers243
Looking Ahead245
Quiz245
Chapter 13Getting Your Message Across: The Status Bar, Banners, and Slideshows249
Making Magic Using the Status Bar250
Building a Static Message250
Changing the Message Using Rollovers253
Moving the Message Along the Status Bar256
Banner Advertisements268
Loading and Displaying Banner Advertisements268
Linking Banner Advertisements to URLs271
Creating a Slideshow273
Looking Ahead275
Quiz276
Chapter 14Protecting Your Web Page279
Hiding Your Code280
Disabling the Right Mouse Button280
Hiding Your JavaScript283
Concealing Your E-mail Address286
Looking Ahead288
Quiz288
Chapter 15Menus291
Creating a Pull-Down Menu292
Dynamically Changing a Menu294
Validating Menu Selections296
Creating DHTML Menus298
Floating Menu299
Chain Select Menu299
Tab Menu300
Popup Menu300
Highlighted Menu301
Folding Tree Menu301
Microsoft Outlook Bar Style Menu302
Context Menu303
Scrollable Menu303
Side Bar Menu304
Slide-In Menu304
Looking Ahead305
Quiz306
Chapter 16DHTML309
What Is DHTML?310
Learning DHTML310
Cascading Style Sheets311
Using DHTML Code313
Generic Drag313
LCD Clock All316
Watermark Background Image319
Tabbed Document Viewer Using iframe319
Daily iframe Content323
Cross-Browser Marquee325
Popup Calendar325
Drop-In Content Box325
Ad Box326
Quiz327
Appendix329
Final Exam333
Answers to Quizzes and Final Exam349
Index361
From the B&N Reads Blog

Customer Reviews