Chapter 13. Working with JavaScript

Looking for ways to add action and interest to your Web site? JavaScript can help you add interactivity to your HTML documents. This chapter shows you how to use JavaScript code to make your pages more interesting to people who visit your Web site.

Working with JavaScript

Understanding JavaScript. 252

Understanding Script Events and Handlers 254

Add JavaScript to a Web Page 256

Create a JavaScript File 257

Hide JavaScript 258

Add Alternative Text 259

Insert the Current Date and Time. 260

Display an Alert Message Box 261

Display a Pop-Up Window 262

Customize the Status Bar Message for a Link 263

Create an Image Rollover Effect 264

Validate Form Data ...

Get Teach Yourself VISUALLY™ HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.