Everyday Computing Advanced Computing The Internet At Home Health, Mind & Body Making & Managing Money Sports & Leisure Travel Beyond The Classroom
Building Web Sites
Doing Business Online
Graphics & Animation
Using the Internet
Moms, Dads, and Grads -- Win $500!
eBay Listings That Sell For Dummies
Knowing What You Can Do with JavaScript
Adapted From: eBay Listings That Sell For Dummies

JavaScript, which was originally developed by the Netscape company, is simply an extension of HTML. Where HTML allows you to change the look of a page and the way text and images are displayed on a page, JavaScript gives you even more control over the information that your page displays. With JavaScript, you can direct the browser to perform one of a set of actions based on criteria that can be different each time the page is viewed, such as the displaying a message based on the current date and time. A few items you can accomplish with JavaScript include

  • Displaying different text or images based on the current date or other criterion (such as the browser that's used to view the listing).
  • Changing the appearance or the actual content of text or images based on the position of the mouse on the page. For example, you can have a different caption display underneath an image based on which portion of the picture the mouse cursor hovers over.
  • Displaying a message box based on a left- or right- click of the mouse.

Don't confuse JavaScript with Java. Java is an actual computer programming language that has very powerful features, but requires a separate program a Java compiler) to work on a Web page. Specifically, the programmer creates a file of commands, and this compiler converts the Java commands into a sort of mini-application (called an applet), which is then saved in another location to be included as part of the Web page when it is accessed.


To find out how to have Dummies eTips delivered to your e-mail inbox every week, visit the Dummies eTip Sign-Up Page.
Related Articles
Deciding Your Use for HTML
Managing Server Access with Contribute
Keeping in Touch with Design Notes
Putting Gizmos in Your Web Pages and Auctions
Exterminating Web Bugs
Related Titles
The Internet For Dummies, 11th Edition
Ajax For Dummies
XML All-in-One Desk Reference For Dummies
Adobe Creative Suite All-in-One Desk Reference For Dummies
HTML 4 For Dummies, 5th Edition