Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Copyright
About the Author
Acknowledgments
Tell Us What You Think!
Introduction
Welcome to JavaScript
Getting into JavaScript!
JavaScript Is Everywhere
Why You Need to Learn JavaScript
JavaScript History
JavaScript Today
The Future of JavaScript
What Is the Difference Between a Script and a Program?
What About the Difference Between a Scripting Language and a Programming Language?
Tools for the JavaScripter
Having the Latest Browsers
Other Tools
What's Next
Combining JavaScript and HTML
Meeting of Worlds—HTML and JavaScript
Hiding JavaScript from Older Browsers
What's Next
Language Tour
JavaScript in Action
Exploring JavaScript Inputs and Outputs
Objects, Methods, … and Even Properties
Using the alert() Method
Adding Comments to JavaScript
Using the confirm() Method
Using the prompt() Method
What's Next
Handling Data with Variables
JavaScript Values
JavaScript Variables
Troubleshooting!
Using the prompt() Method to Assign a Value to a Variable
What's Next
JavaScript Arrays and Escape Characters
Using Arrays
Creating an Array in a Hurry!
The Length of an Array
Showing All Elements
Exercise—Interactive Story
Escape Characters
What's Next
Expressions, Conditions, Operators, and More Strings and Numbers
More on Terminology—What Are Expressions and Conditions?
Introducing Operators
Revisiting Strings and Numbers
What's Next
Using Statements in JavaScript
What Are Statements?
The variable Statement
The if Statement
Iteration Statements
The continue Statement
The break Statement
The switch Statement
What's Next
Write Better JavaScript Scripts by Using Functions and Events
What Are Functions?
Your First Function
Events
Using Events
Creating Effective Functions!
Functions Running Functions!
What Are Those Parentheses For?
Using Parameters Between Functions
The return Statement
Exercise—Temperature Conversion JavaScript
What's Next
Getting the Most Out of Objects
Objects—What Are They?
Objects and Browsers
The JavaScript Objects—A Closer Look
The Math Object
The Date Object
The String Object
The with Statement
Object Methods and Properties
What's Next
Bugs—How to Find Them and Kill Them
What Are Bugs?
Types of Bugs
Finding Errors
Narrowing Down Errors
The Microsoft Script Debugger
Common Errors
What's Next
Where Does JavaScript Go?
Going Beyond the Box (or Should That Be Head?)
Thinking Outside the <head>!
Linking, Linking, Linking!
Inline JavaScript
When to Use Your <head>, When to Link, and When to Make It Inline!
What's Next
JavaScript and Dynamic HTML
Dynamic HTML and JavaScript
The World of DHTML
The Concepts and Features of DHTML
Why Do Differences Exist Between the Browsers?
What Can You Do with DHTML?
What's Next
Cascading Style Sheets and JavaScript!
A Little Cascading Style Sheets History
Introduction to CSS
JavaScript and CSS
Creating Animation!
Animation and Internet Explorer 5
Doing the Same Thing … Only in Netscape Navigator 4!
Making It Work in Both Browsers!
Ups and Downs
Want to Go Diagonally?
Back to JavaScript for a Moment…
What's Next
JavaScript and the Document Object Model
An Introduction to the Document Object Model
How Much Power Does It Give Me?
Access to Page Elements
The Event Model
JavaScript Power
What's Next
Examples, Examples, Examples!
Example 1—Adding Last Modified Dates to Web Pages
Example 2—Simple Clock
Example 3—Simple Countdown Counter
Example 4—Simple Form Validation
Example 5—Rollovers
Example 6—Scrolling Status Bar Message
Example 7—Controlling Cookies
What's Next
Index
← Prev
Back
Next →
← Prev
Back
Next →