rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780072261349

JavaScript Demystified

by
  • ISBN13:

    9780072261349

  • ISBN10:

    007226134X

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2005-06-16
  • Publisher: McGraw-Hill Education
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $25.00 Save up to $0.02
  • Buy New
    $24.98

    THIS IS A HARD-TO-FIND TITLE. WE ARE MAKING EVERY EFFORT TO OBTAIN THIS ITEM, BUT DO NOT GUARANTEE STOCK.

Summary

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.

Author Biography

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

Introduction xv
An Inside Look at JavaScript
1(14)
Answers to Common Questions About JavaScript
2(1)
JavaScript: A Limited-Featured Programming Language
3(1)
Getting Down to JavaScript
4(3)
Object Name
4(1)
Property
5(1)
Methods
5(1)
The Dot Syntax
6(1)
The Main Event
6(1)
Writing Your First JavaScript
7(3)
``Old Timers'' Don't Like JavaScript
10(1)
Spicing Up Your JavaScript
11(1)
Looking Ahead
12(1)
Quiz
12(3)
Variables, Operators, and Expressions
15(28)
Values and Variables
16(8)
Values
16(1)
Variables
17(7)
Operators and Expressions
24(16)
Parts of an Expression
24(1)
Multiple Operations
24(1)
Types of Operators
25(15)
Looking Ahead
40(1)
Quiz
40(3)
Condition Statements
43(32)
if Statement
45(13)
The if Statement in Action
45(1)
The if...else Statement
46(2)
The if...else if Statement
48(4)
Other Variations of the if Statement
52(1)
Nested if Statement
53(2)
Identifying a Browser
55(3)
switch...case Statement
58(4)
Loop Statement
62(10)
The for Loop
62(4)
The for in Loop
66(2)
The while Loop
68(2)
The do...while Loop
70(1)
continue
71(1)
Looking Ahead
72(1)
Quiz
73(2)
Arrays
75(20)
What Is an Array?
75(1)
Declaring an Array
76(2)
Initializing an Array
77(1)
Defining Array Elements
78(2)
How Many Elements Are in the Array?
79(1)
Looping the Array
80(2)
Adding an Array Element
82(1)
Sorting Array Elements
83(1)
Making a New Array from an Existing Array
84(3)
Combining Array Elements into a String
87(3)
Changing Elements of the Array
90(1)
Looking Ahead
91(1)
Quiz
92(3)
Functions
95(22)
What Is a Function?
96(1)
Defining a Function
96(4)
Writing a Function Definition
98(1)
Adding Arguments
99(1)
The Scope of Variables and Arguments
100(1)
Calling a Function
101(7)
Calling a Function Without an Argument
102(1)
Calling a Function with an Argument
103(1)
Calling a Function from HTML
104(4)
Functions Calling Another Function
108(1)
Returning Values from a Function
109(4)
Looking Ahead
113(1)
Quiz
114(3)
Strings
117(18)
Why Manipulate a String?
117(1)
Joining Strings
118(2)
Finding Your Way Around a String
120(3)
Dividing Text
123(6)
Copying a Substring
125(4)
Converting Numbers and Strings
129(2)
Numbers to Strings
130(1)
Changing the Case of the String
131(1)
Strings and Unicode
132(1)
Looking Ahead
132(1)
Quiz
133(2)
Forms and Event Handling
135(30)
Building Blocks of a Form
136(1)
Elements and JavaScript
136(1)
Responding to Form Events
137(4)
Form Objects and Elements
141(3)
Time-Saving Shortcut
143(1)
Changing Attribute Values Dynamically
144(4)
Changing Elements Based on a Value Selected by the User
146(2)
Changing an Option List Dynamically
148(3)
Evaluating Check Box Selections
151(2)
Manipulating Elements Before the Form Is Submitted
153(2)
Using Intrinsic JavaScript Functions
155(1)
Changing Labels Dynamically
156(3)
Disabling Elements
159(2)
Read-Only Elements
161(1)
Looking Ahead
162(1)
Quiz
163(2)
Cookies
165(14)
Cookie Basics
166(1)
Creating a Cookie
167(2)
Reading a Cookie
169(2)
Setting the Expiration Date
171(1)
Deleting a Cookie
172(2)
Personalizing an Experience Using a Cookie
174(2)
Looking Ahead
176(1)
Quiz
176(3)
Browser Windows
179(20)
Open the Window, Please!
180(2)
Giving the New Window Focus
182(2)
Placing the Window into Position on the Screen
184(2)
Changing the Contents of a Window
186(1)
Closing the Window
187(3)
``Magically'' Scrolling a Web Page
190(1)
Opening Multiple Windows at Once
191(1)
Creating a Web Page in a New Window
192(3)
Looking Ahead
195(1)
Quiz
196(3)
Regular Expressions
199(18)
What Is a Regular Expression?
200(1)
The Language of a Regular Expression
201(6)
Finding Nonmatching Characters
204(1)
Entering a Range of Characters
205(1)
Matching Digits and Nondigits
205(1)
Matching Punctuation and Symbols
206(1)
Matching Words
206(1)
Replace Text Using a Regular Expression
207(2)
Replacing Like Values
208(1)
Return the Matched Characters
209(5)
The Telephone Number Match
210(3)
Regular Expression Object Properties
213(1)
Looking Ahead
214(1)
Quiz
215(2)
JavaScript and Frames
217(14)
You've Been Framed!
218(4)
Invisible Borders
220(2)
Calling a Child Window's JavaScript Function
222(1)
Changing the Content of a Child Window
223(3)
Changing the Focus of a Child Window
226(1)
Writing to a Child Window from a JavaScript
226(2)
Accessing Elements of Another Child Window
228(1)
Looking Ahead
228(1)
Quiz
229(2)
Rollovers
231(18)
Setting the Stage
232(2)
Creating a Rollover
234(3)
Text Rollovers
237(2)
Multiple Actions for a Rollover
239(4)
More Efficient Rollovers
243(2)
Looking Ahead
245(1)
Quiz
245(4)
Getting Your Message Across: The Status Bar, Banners, and Slideshows
249(30)
Making Magic Using the Status Bar
250(18)
Building a Static Message
250(3)
Changing the Message Using Rollovers
253(3)
Moving the Message Along the Status Bar
256(12)
Banner Advertisements
268(5)
Loading and Displaying Banner Advertisements
268(3)
Linking Banner Advertisements to URLs
271(2)
Creating a Slideshow
273(2)
Looking Ahead
275(1)
Quiz
276(3)
Protecting Your Web Page
279(12)
Hiding Your Code
280(6)
Disabling the Right Mouse Button
280(3)
Hiding Your JavaScript
283(3)
Concealing Your E-mail Address
286(2)
Looking Ahead
288(1)
Quiz
288(3)
Menus
291(18)
Creating a Pull-Down Menu
292(2)
Dynamically Changing a Menu
294(2)
Validating Menu Selections
296(2)
Creating DHTML Menus
298(7)
Floating Menu
299(1)
Chain Select Menu
299(1)
Tab Menu
300(1)
Popup Menu
300(1)
Highlighted Menu
301(1)
Folding Tree Menu
301(1)
Microsoft Outlook Bar Style Menu
302(1)
Context Menu
303(1)
Scrollable Menu
303(1)
Side Bar Menu
304(1)
Slide-In Menu
304(1)
Looking Ahead
305(1)
Quiz
306(3)
DHTML
309(20)
What Is DHTML?
310(3)
Learning DHTML
310(1)
Cascading Style Sheets
311(2)
Using DHTML Code
313(14)
Generic Drag
313(3)
LCD Clock All
316(3)
Watermark Background Image
319(1)
Tabbed Document Viewer Using iframe
319(4)
Daily iframe Content
323(2)
Cross-Browser Marquee
325(1)
Popup Calendar
325(1)
Drop-In Content Box
325(1)
Ad Box
326(1)
Quiz
327(2)
Appendix 329

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program