Cover image for Essential Java script for Web professionals
Essential Java script for Web professionals
Barrett, Daniel J.
Personal Author:
Publication Information:
Upper Saddle River, NJ : Prentice Hall, 1999.
Physical Description:
198 pages ; 23 cm.
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.76.J39 B37 1999 Adult Non-Fiction Central Closed Stacks

On Order



With JavaScript, you can build sites that look hotter and work smarter than ever before Now, learn JavaScript by example, from two leading Fortune 500 Web developers Youll learn all you need to get results as you build real-world practice sites that sell products, educate visitors, offer subscriptions, and display ads. Best of all, the finished sites are on the Web-so you can reuse the code and see exactly how your pages should look and work Write JavaScript to do all this, and much more * Detect browsers and platforms * Create content dynamically * Create image rollovers * Enhance navigation * Provide error handling * Generate windows * Communicate between frames Rely on Essential Guides for ALL the Web Skills You Need All these books share the same great format, and the same dynamic website. . . so once youve used one, theyre all a piece of cake * Essential CSS & DHTML for Web Professionals * Essential PERL 5 for Web Professionals * Essential Photoshop 5 for Web Professionals * Essential JavaScript for Web Professionals * With more to come

Author Notes

Dan Barrett has over eight years of Web design, 3D animation, and modeling experience, working with clients that include Hewlett-Packard, Novell, and Pacific Bell.

Dan Livingston's high-profile Web design clients include Apple. Pacific Bell, and Novell. His sites have won numerous awards and been featured on CNN Prime Time.

Micah Brown co-owns Etail Enterprises, a Northern California Web advertising consultancy. Sites he has developed include Dr. Laura, Pacific Bell, and Ascend.

Table of Contents

1 Dynamism and Detection
Project I Generating Platform-Specific Content
Inserting a Script into Your HTML
JavaScript Hierarchies
Platform/Browser Detection
Creating Dynamic HTML from within JavaScript
Project II Printing Copyright Information and Last-Modified Date
Introduction of the Last-Modified Property
Dynamically Printing Nonstring Data
2 Image Rollovers
Project I Rollover Script
Creating the IMAGE Objects
Image Rollover Functions
Inserting the Event Handlers
Project II
Inserting the Event Handlers
Creating the IMAGE Objects
Inserting the Rollover Functions
Rollover Quirks
3 JavaScript for Navigation
Project I JavaScript and Pull-Down Menus
Creating the Navigation Function
Inserting the Event Handler
Using on Change for Instant Gratification
Project II
Creating the Arrays
Creating the Drill-Down Menu Function
Creating the Navigation Function
Inserting the Event Handlers
Project III Using JavaScript on a Log-in Page
Inserting the Event Handler
4 Error Handling in Forms
Project I Checking for Empty Form Fields
Checking Forms for Empty Text Box Fields
Making Sure a Pull-Down Menu Option Was Chosen
Project II Checking for Erroneous Data in Form Fields
Checking E-mail Addresses for Valid Characters
Checking for Area Codes in Phone Numbers
Making Sure Zip Codes Have Only Numbers
Project III Letting the User Know What's Wrong
5 JavaScript Windows and Frames
A Look at the WINDOW Object
Project I Creating, Populating, and Closing Windows
Creating and Defining the Arrays
Creating the Function
Inserting the Event Handlers
Project II Using JavaScript to Talk between Frames
Figuring Out Your Frame Hierarchy
Creating a Function to Check Which Section You're In
Inserting the Event Handler
6 Advanced JavaScript
Project I Create Submenus for the Stitch Secondary Pages
Functional Specification
Creating and Populating the Arrays to Store Data
Creating the Functions to Run the Submenu System
Inserting the Event Handlers
Appendix A Event Handlers
Appendix B JavaScript Objects