Pub. Date:
McGraw-Hill Professional Publishing
JavaScript Demystified / Edition 1

JavaScript Demystified / Edition 1

by Jim Keogh
Current price is , Original price is $22.0. You

Temporarily Out of Stock Online

Please check back later for updated availability.

Product Details

ISBN-13: 9780072261349
Publisher: McGraw-Hill Professional Publishing
Publication date: 05/26/2005
Series: Demystified Series
Pages: 375
Sales rank: 446,745
Product dimensions: 7.30(w) x 9.20(h) x 0.71(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

Chapter 1An Inside Look at JavaScript1
Answers to Common Questions About JavaScript2
JavaScript: A Limited-Featured Programming Language3
Getting Down to JavaScript4
Object Name4
The Dot Syntax6
The Main Event6
Writing Your First JavaScript7
"Old Timers" Don't Like JavaScript10
Spicing Up Your JavaScript11
Looking Ahead12
Chapter 2Variables, Operators, and Expressions15
Values and Variables16
Operators and Expressions24
Parts of an Expression24
Multiple Operations24
Types of Operators25
Looking Ahead40
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 Statement58
Loop Statement62
The for Loop62
The for in Loop66
The while Loop68
The do...while Loop70
Looking Ahead72
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
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
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
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
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
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
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
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
Chapter 12Rollovers231
Setting the Stage232
Creating a Rollover234
Text Rollovers237
Multiple Actions for a Rollover239
More Efficient Rollovers243
Looking Ahead245
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
Chapter 14Protecting Your Web Page279
Hiding Your Code280
Disabling the Right Mouse Button280
Hiding Your JavaScript283
Concealing Your E-mail Address286
Looking Ahead288
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
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
Final Exam333
Answers to Quizzes and Final Exam349

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

JavaScript Demystified 5 out of 5 based on 0 ratings. 7 reviews.
Guest More than 1 year ago
I'm an experience web developer and always wanted to get into JavaScript. I took a chance buying this book. Within the first few pages I was writing working JavaScripts. I didn't come up for air until I was a quarter through the book. That's a good sign because I bail out of most books without finishing the first chapter. Good job.
Guest More than 1 year ago
Don't sweat the small stuff when it comes to JavaScript. That should be the subtitle because the author covers just enough to get you going with JavaScript and DHTML. Not a lot of technical stuff that you rarely end up using. Straight to the point. Here's the feature and here's what you need to do to use it in your web page. This is surprisingly good considering the price. No regrets of putting this on my bookshelf.
Guest More than 1 year ago
Great book. Right to the point. Cuts out a lot of needless stuff that you find in other JavaScript books. This is the one to get if you want to build that commercial flare into your site. You'll be up and running in no time.
Guest More than 1 year ago
The author has covered this topic very well. All the features anyone could ever want to build into a web page are illustrated. I simply cut and pasted code including all those features found on web pages the pros build. The only thing unexpected is the price. Great price. Great read. It doesn't weigh you down either. I found this a welcome addition to my web library.
Anonymous More than 1 year ago
The heavy cat paded in. "What?"
Anonymous More than 1 year ago
U will be like if someone dies because u couldnt save then u r goin to think why did we exile shadow - turns back around and walks off -
Anonymous More than 1 year ago
Im locked out. Can we move?