Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Foreword
Preface
Contents at a Glance
Contents
Part I: Getting Started with JavaScript
1: JavaScript's Role in the World Wide Web and Beyond
Competing for Web Traffic
Other Web Technologies
JavaScript: A Language for All
JavaScript: The Right Tool for the Right Job
Competing for Web Traffic
Other Web Technologies
JavaScript: A Language for All
JavaScript: The Right Tool for the Right Job
2: Authoring Challenges Amid the Browser Wars
Leapfrog
Duck and Cover
Compatibility Issues Today
Developing a Scripting Strategy
Leapfrog
Duck and Cover
Compatibility Issues Today
Developing a Scripting Strategy
3: Your First JavaScript Script
The Software Tools
Setting Up Your Authoring Environment
What Your First Script Will Do
Entering Your First Script
Examining the Script
Have Some Fun
The Software Tools
Setting Up Your Authoring Environment
What Your First Script Will Do
Entering Your First Script
Examining the Script
Have Some Fun
1: JavaScript's Role in the World Wide Web and Beyond
Competing for Web Traffic
Other Web Technologies
JavaScript: A Language for All
JavaScript: The Right Tool for the Right Job
Competing for Web Traffic
Other Web Technologies
JavaScript: A Language for All
JavaScript: The Right Tool for the Right Job
2: Authoring Challenges Amid the Browser Wars
Leapfrog
Duck and Cover
Compatibility Issues Today
Developing a Scripting Strategy
Leapfrog
Duck and Cover
Compatibility Issues Today
Developing a Scripting Strategy
3: Your First JavaScript Script
The Software Tools
Setting Up Your Authoring Environment
What Your First Script Will Do
Entering Your First Script
Examining the Script
Have Some Fun
The Software Tools
Setting Up Your Authoring Environment
What Your First Script Will Do
Entering Your First Script
Examining the Script
Have Some Fun
Part II: JavaScript Tutorial
4: Browser and Document Objects
Scripts Run the Show
JavaScript in Action
The Document Object Model
When a Document Loads
Object References
Node Terminology
What Defines an Object?
Exercises
Scripts Run the Show
JavaScript in Action
The Document Object Model
When a Document Loads
Object References
Node Terminology
What Defines an Object?
Exercises
5: Scripts and HTML Documents
Where Scripts Go in Documents
JavaScript Statements
When Script Statements Execute
Viewing Script Errors
Scripting versus Programming
Exercises
Where Scripts Go in Documents
JavaScript Statements
When Script Statements Execute
Viewing Script Errors
Scripting versus Programming
Exercises
6: Programming Fundamentals, Part I
What Language Is This?
Working with Information
Variables
Expressions and Evaluation
Data Type Conversions
Operators
Exercises
What Language Is This?
Working with Information
Variables
Expressions and Evaluation
Data Type Conversions
Operators
Exercises
7: Programming Fundamentals, Part II
Decisions and Loops
Control Structures
About Repeat Loops
Functions
About Curly Braces
Arrays
Exercises
Decisions and Loops
Control Structures
About Repeat Loops
Functions
About Curly Braces
Arrays
Exercises
8: Window and Document Objects
Top-Level Objects
The window Object
Window Properties and Methods
The location Object
The navigator Object
The document Object
Exercises
Top-Level Objects
The window Object
Window Properties and Methods
The location Object
The navigator Object
The document Object
Exercises
9: Forms and Form Elements
The form Object
Form Controls as Objects
The Button Object
The Checkbox Object
The Radio Object
The select Object
Passing Form Data and Elements to Functions
Submitting and Prevalidating Forms
Exercises
The form Object
Form Controls as Objects
The Button Object
The Checkbox Object
The Radio Object
The select Object
Passing Form Data and Elements to Functions
Submitting and Prevalidating Forms
Exercises
10: Strings, Math, and Dates
Core Language Objects
String Objects
The Math Object
The Date Object
Date Calculations
Exercises
Core Language Objects
String Objects
The Math Object
The Date Object
Date Calculations
Exercises
11: Scripting Frames and Multiple Windows
Frames: Parents and Children
References among Family Members
Frame Scripting Tips
About iframe Elements
Controlling Multiple Frames-Navigation Bars
References for Multiple Windows
Exercises
Frames: Parents and Children
References among Family Members
Frame Scripting Tips
About iframe Elements
Controlling Multiple Frames-Navigation Bars
References for Multiple Windows
Exercises
12: Images and Dynamic HTML
The Image Object
The javascript: Pseudo-URL
Popular Dynamic HTML Techniques
Exercises
The Image Object
The javascript: Pseudo-URL
Popular Dynamic HTML Techniques
Exercises
4: Browser and Document Objects
Scripts Run the Show
JavaScript in Action
The Document Object Model
When a Document Loads
Object References
Node Terminology
What Defines an Object?
Exercises
Scripts Run the Show
JavaScript in Action
The Document Object Model
When a Document Loads
Object References
Node Terminology
What Defines an Object?
Exercises
5: Scripts and HTML Documents
Where Scripts Go in Documents
JavaScript Statements
When Script Statements Execute
Viewing Script Errors
Scripting versus Programming
Exercises
Where Scripts Go in Documents
JavaScript Statements
When Script Statements Execute
Viewing Script Errors
Scripting versus Programming
Exercises
6: Programming Fundamentals, Part I
What Language Is This?
Working with Information
Variables
Expressions and Evaluation
Data Type Conversions
Operators
Exercises
What Language Is This?
Working with Information
Variables
Expressions and Evaluation
Data Type Conversions
Operators
Exercises
7: Programming Fundamentals, Part II
Decisions and Loops
Control Structures
About Repeat Loops
Functions
About Curly Braces
Arrays
Exercises
Decisions and Loops
Control Structures
About Repeat Loops
Functions
About Curly Braces
Arrays
Exercises
8: Window and Document Objects
Top-Level Objects
The window Object
Window Properties and Methods
The location Object
The navigator Object
The document Object
Exercises
Top-Level Objects
The window Object
Window Properties and Methods
The location Object
The navigator Object
The document Object
Exercises
9: Forms and Form Elements
The form Object
Form Controls as Objects
The Button Object
The Checkbox Object
The Radio Object
The select Object
Passing Form Data and Elements to Functions
Submitting and Prevalidating Forms
Exercises
The form Object
Form Controls as Objects
The Button Object
The Checkbox Object
The Radio Object
The select Object
Passing Form Data and Elements to Functions
Submitting and Prevalidating Forms
Exercises
10: Strings, Math, and Dates
Core Language Objects
String Objects
The Math Object
The Date Object
Date Calculations
Exercises
Core Language Objects
String Objects
The Math Object
The Date Object
Date Calculations
Exercises
11: Scripting Frames and Multiple Windows
Frames: Parents and Children
References among Family Members
Frame Scripting Tips
About iframe Elements
Controlling Multiple Frames-Navigation Bars
References for Multiple Windows
Exercises
Frames: Parents and Children
References among Family Members
Frame Scripting Tips
About iframe Elements
Controlling Multiple Frames-Navigation Bars
References for Multiple Windows
Exercises
12: Images and Dynamic HTML
The Image Object
The javascript: Pseudo-URL
Popular Dynamic HTML Techniques
Exercises
The Image Object
The javascript: Pseudo-URL
Popular Dynamic HTML Techniques
Exercises
Part III: Document Objects Reference
13: JavaScript Essentials
JavaScript Versions
Core Language Standard-ECMAScript
Embedding Scripts in HTML Documents
Browser Version Detection
Designing for Compatibility
Language Essentials for Experienced Programmers
Onward to Object Models
JavaScript Versions
Core Language Standard-ECMAScript
Embedding Scripts in HTML Documents
Browser Version Detection
Designing for Compatibility
Language Essentials for Experienced Programmers
Onward to Object Models
14: Document Object Model Essentials
The Object Model Hierarchy
How Document Objects Are Born
Object Properties
Object Methods
Object Event Handlers
Object Model Smorgasbord
Basic Object Model
Basic Object Model Plus Images
Navigator 4–Only Extensions
Internet Explorer 4+ Extensions
Internet Explorer 5+ Extensions
The W3C DOM
Mixing Object Models
Standards Compatibility Modes (DOCTYPE Switching)
Where to Go from Here
The Object Model Hierarchy
How Document Objects Are Born
Object Properties
Object Methods
Object Event Handlers
Object Model Smorgasbord
Basic Object Model
Basic Object Model Plus Images
Navigator 4–Only Extensions
Internet Explorer 4+ Extensions
Internet Explorer 5+ Extensions
The W3C DOM
Mixing Object Models
Standards Compatibility Modes (DOCTYPE Switching)
Where to Go from Here
15: Generic HTML Element Objects
Generic Objects
Generic Objects
16: Window and Frame Objects
Window Terminology
Frames
window Object
frame Element Object
frameset Element Object
iframe Element Object
popup Object
Window Terminology
Frames
window Object
frame Element Object
frameset Element Object
iframe Element Object
popup Object
17: Location and History Objects
location Object
history Object
location Object
history Object
18: The Document and Body Objects
document Object
body Element Object
TreeWalker Object
document Object
body Element Object
TreeWalker Object
19: Link and Anchor Objects
Anchor, Link, and a Element Objects
Anchor, Link, and a Element Objects
20: Image, Area, and Map Objects
Image and img Element Objects
area Element Object
map Element Object
Image and img Element Objects
area Element Object
map Element Object
21: The Form and Related Objects
The Form in the Object Hierarchy
form Object
fieldset and legend Element Objects
label Element Object
The Form in the Object Hierarchy
form Object
fieldset and legend Element Objects
label Element Object
22: Button Objects
The button Element Object, and the Button, Submit, and Reset Input Objects
checkbox Input Object
radio Input Object
image Input Object
The button Element Object, and the Button, Submit, and Reset Input Objects
checkbox Input Object
radio Input Object
image Input Object
23: Text-Related Form Objects
Text Input Object
password Input Object
hidden Input Object
textarea Element Object
Text Input Object
password Input Object
hidden Input Object
textarea Element Object
24: Select, Option, and FileUpload Objects
select Element Object
option Element Object
optgroup Element Object
file Input Element Object
select Element Object
option Element Object
optgroup Element Object
file Input Element Object
25: Event Objects
Why "Events"?
Event Propagation
Referencing the event object
event Object Compatibility
Dueling Event Models
Event Types
NN4 event Object
IE4+ event Object
NN6+/Moz/Safari event Object
Why "Events"?
Event Propagation
Referencing the event object
event Object Compatibility
Dueling Event Models
Event Types
NN4 event Object
IE4+ event Object
NN6+/Moz/Safari event Object
26: Style Sheet and Style Objects
Making Sense of the Object Names
Imported Stylesheets
Reading Style Properties
style Element Object
styleSheet Object
cssRule and rule Objects
currentStyle , runtimeStyle , and style Objects
filter Object
Making Sense of the Object Names
Imported Stylesheets
Reading Style Properties
style Element Object
styleSheet Object
cssRule and rule Objects
currentStyle , runtimeStyle , and style Objects
filter Object
13: JavaScript Essentials
JavaScript Versions
Core Language Standard-ECMAScript
Embedding Scripts in HTML Documents
Browser Version Detection
Designing for Compatibility
Language Essentials for Experienced Programmers
Onward to Object Models
JavaScript Versions
Core Language Standard-ECMAScript
Embedding Scripts in HTML Documents
Browser Version Detection
Designing for Compatibility
Language Essentials for Experienced Programmers
Onward to Object Models
14: Document Object Model Essentials
The Object Model Hierarchy
How Document Objects Are Born
Object Properties
Object Methods
Object Event Handlers
Object Model Smorgasbord
Basic Object Model
Basic Object Model Plus Images
Navigator 4–Only Extensions
Internet Explorer 4+ Extensions
Internet Explorer 5+ Extensions
The W3C DOM
Mixing Object Models
Standards Compatibility Modes (DOCTYPE Switching)
Where to Go from Here
The Object Model Hierarchy
How Document Objects Are Born
Object Properties
Object Methods
Object Event Handlers
Object Model Smorgasbord
Basic Object Model
Basic Object Model Plus Images
Navigator 4–Only Extensions
Internet Explorer 4+ Extensions
Internet Explorer 5+ Extensions
The W3C DOM
Mixing Object Models
Standards Compatibility Modes (DOCTYPE Switching)
Where to Go from Here
15: Generic HTML Element Objects
Generic Objects
Generic Objects
16: Window and Frame Objects
Window Terminology
Frames
window Object
frame Element Object
frameset Element Object
iframe Element Object
popup Object
Window Terminology
Frames
window Object
frame Element Object
frameset Element Object
iframe Element Object
popup Object
17: Location and History Objects
location Object
history Object
location Object
history Object
18: The Document and Body Objects
document Object
body Element Object
TreeWalker Object
document Object
body Element Object
TreeWalker Object
19: Link and Anchor Objects
Anchor, Link, and a Element Objects
Anchor, Link, and a Element Objects
20: Image, Area, and Map Objects
Image and img Element Objects
area Element Object
map Element Object
Image and img Element Objects
area Element Object
map Element Object
21: The Form and Related Objects
The Form in the Object Hierarchy
form Object
fieldset and legend Element Objects
label Element Object
The Form in the Object Hierarchy
form Object
fieldset and legend Element Objects
label Element Object
22: Button Objects
The button Element Object, and the Button, Submit, and Reset Input Objects
checkbox Input Object
radio Input Object
image Input Object
The button Element Object, and the Button, Submit, and Reset Input Objects
checkbox Input Object
radio Input Object
image Input Object
23: Text-Related Form Objects
Text Input Object
password Input Object
hidden Input Object
textarea Element Object
Text Input Object
password Input Object
hidden Input Object
textarea Element Object
24: Select, Option, and FileUpload Objects
select Element Object
option Element Object
optgroup Element Object
file Input Element Object
select Element Object
option Element Object
optgroup Element Object
file Input Element Object
25: Event Objects
Why "Events"?
Event Propagation
Referencing the event object
event Object Compatibility
Dueling Event Models
Event Types
NN4 event Object
IE4+ event Object
NN6+/Moz/Safari event Object
Why "Events"?
Event Propagation
Referencing the event object
event Object Compatibility
Dueling Event Models
Event Types
NN4 event Object
IE4+ event Object
NN6+/Moz/Safari event Object
26: Style Sheet and Style Objects
Making Sense of the Object Names
Imported Stylesheets
Reading Style Properties
style Element Object
styleSheet Object
cssRule and rule Objects
currentStyle , runtimeStyle , and style Objects
filter Object
Making Sense of the Object Names
Imported Stylesheets
Reading Style Properties
style Element Object
styleSheet Object
cssRule and rule Objects
currentStyle , runtimeStyle , and style Objects
filter Object
Part IV: JavaScript Core Language Reference
27: The String Object
String and Number Data Types
String Object
String Utility Functions
URL String Encoding and Decoding
String and Number Data Types
String Object
String Utility Functions
URL String Encoding and Decoding
28: The Math, Number, and Boolean Objects
Numbers in JavaScript
Math Object
Number Object
Boolean Object
Numbers in JavaScript
Math Object
Number Object
Boolean Object
29: The Date Object
Time Zones and GMT
The Date Object
Validating Date Entries in Forms
Time Zones and GMT
The Date Object
Validating Date Entries in Forms
30: The Array Object
Structured Data
Creating an Empty Array
Populating an Array
JavaScript Array Creation Enhancements
Deleting Array Entries
Parallel Arrays
Multidimensional Arrays
Simulating a Hash Table
Array Object Properties
Array Object Methods
Structured Data
Creating an Empty Array
Populating an Array
JavaScript Array Creation Enhancements
Deleting Array Entries
Parallel Arrays
Multidimensional Arrays
Simulating a Hash Table
Array Object Properties
Array Object Methods
31: Control Structures and Exception Handling
If and If .Else Decisions
Conditional Expressions
Repeat (for) Loops
The while Loop
The do-while Loop
Looping through Properties (for-in)
The with Statement
Labeled Statements
The switch Statement
Exception Handling
Using try-catch-finally Constructions
Throwing Exceptions
Error Object
If and If .Else Decisions
Conditional Expressions
Repeat (for) Loops
The while Loop
The do-while Loop
Looping through Properties (for-in)
The with Statement
Labeled Statements
The switch Statement
Exception Handling
Using try-catch-finally Constructions
Throwing Exceptions
Error Object
32: JavaScript Operators
Operator Categories
Comparison Operators
Equality of Disparate Data Types
Connubial Operators
Assignment Operators
Boolean Operators
Bitwise Operators
Object Operators
Miscellaneous Operators
Operator Precedence
Operator Categories
Comparison Operators
Equality of Disparate Data Types
Connubial Operators
Assignment Operators
Boolean Operators
Bitwise Operators
Object Operators
Miscellaneous Operators
Operator Precedence
33: Functions and Custom Objects
Function Object
Function Application Notes
Custom Objects
Object-Oriented Concepts
Object Object
Function Object
Function Application Notes
Custom Objects
Object-Oriented Concepts
Object Object
34: Global Functions and Statements
Functions
Statements
Functions
Statements
35: Body Text Objects
blockquote and q Element Objects
br Element Object
font Element Object
h1...h6 Element Objects
hr Element Object
label Element Object
marquee Element Object
Methods
Event Handlers
Range Object
selection Object
Text and TextNode Objects
TextRange Object
TextRectangle Object
blockquote and q Element Objects
br Element Object
font Element Object
h1...h6 Element Objects
hr Element Object
label Element Object
marquee Element Object
Methods
Event Handlers
Range Object
selection Object
Text and TextNode Objects
TextRange Object
TextRectangle Object
27: The String Object
String and Number Data Types
String Object
String Utility Functions
URL String Encoding and Decoding
String and Number Data Types
String Object
String Utility Functions
URL String Encoding and Decoding
28: The Math, Number, and Boolean Objects
Numbers in JavaScript
Math Object
Number Object
Boolean Object
Numbers in JavaScript
Math Object
Number Object
Boolean Object
29: The Date Object
Time Zones and GMT
The Date Object
Validating Date Entries in Forms
Time Zones and GMT
The Date Object
Validating Date Entries in Forms
30: The Array Object
Structured Data
Creating an Empty Array
Populating an Array
JavaScript Array Creation Enhancements
Deleting Array Entries
Parallel Arrays
Multidimensional Arrays
Simulating a Hash Table
Array Object Properties
Array Object Methods
Structured Data
Creating an Empty Array
Populating an Array
JavaScript Array Creation Enhancements
Deleting Array Entries
Parallel Arrays
Multidimensional Arrays
Simulating a Hash Table
Array Object Properties
Array Object Methods
31: Control Structures and Exception Handling
If and If .Else Decisions
Conditional Expressions
Repeat (for) Loops
The while Loop
The do-while Loop
Looping through Properties (for-in)
The with Statement
Labeled Statements
The switch Statement
Exception Handling
Using try-catch-finally Constructions
Throwing Exceptions
Error Object
If and If .Else Decisions
Conditional Expressions
Repeat (for) Loops
The while Loop
The do-while Loop
Looping through Properties (for-in)
The with Statement
Labeled Statements
The switch Statement
Exception Handling
Using try-catch-finally Constructions
Throwing Exceptions
Error Object
32: JavaScript Operators
Operator Categories
Comparison Operators
Equality of Disparate Data Types
Connubial Operators
Assignment Operators
Boolean Operators
Bitwise Operators
Object Operators
Miscellaneous Operators
Operator Precedence
Operator Categories
Comparison Operators
Equality of Disparate Data Types
Connubial Operators
Assignment Operators
Boolean Operators
Bitwise Operators
Object Operators
Miscellaneous Operators
Operator Precedence
33: Functions and Custom Objects
Function Object
Function Application Notes
Custom Objects
Object-Oriented Concepts
Object Object
Function Object
Function Application Notes
Custom Objects
Object-Oriented Concepts
Object Object
34: Global Functions and Statements
Functions
Statements
Functions
Statements
35: Body Text Objects
blockquote and q Element Objects
br Element Object
font Element Object
h1...h6 Element Objects
hr Element Object
label Element Object
marquee Element Object
Methods
Event Handlers
Range Object
selection Object
Text and TextNode Objects
TextRange Object
TextRectangle Object
blockquote and q Element Objects
br Element Object
font Element Object
h1...h6 Element Objects
hr Element Object
label Element Object
marquee Element Object
Methods
Event Handlers
Range Object
selection Object
Text and TextNode Objects
TextRange Object
TextRectangle Object
Part V: Appendixes
Appendix A: JavaScript and Browser Object Quick Reference
Appendix B: JavaScript Reserved Words
Appendix C: Answers to Tutorial Exercises
Appendix D: JavaScript and DOM Internet Resources
Appendix E: What's on the CD-ROM
Appendix A: JavaScript and Browser Object Quick Reference
Appendix B: JavaScript Reserved Words
Appendix C: Answers to Tutorial Exercises
Appendix D: JavaScript and DOM Internet Resources
Appendix E: What's on the CD-ROM
Index
End-User License Agreement
Web Hosting 2.pdf
Local Disk
file:///C|/Documents and Settings/me/デスクトップ/pictures/getpedia.html
file:///C|/Documents and Settings/me/デスクトップ/pictures/getpedia.html
Local Disk
file:///C|/Documents and Settings/me/デスクトップ/pictures/getpedia.html
file:///C|/Documents and Settings/me/デスクトップ/pictures/getpedia.html
1.pdf
getpedia.com
How everything works - GetPedia
How everything works - GetPedia
getpedia.com
How everything works - GetPedia
How everything works - GetPedia
← Prev
Back
Next →
← Prev
Back
Next →