How To Do Everything With Html Xhtml [Electronic resources]

James H. Pence

نسخه متنی -صفحه : 126/ 91
نمايش فراداده

Chapter 15: Improve Interactivity with JavaScript

How to…

Understand scripting languages

Write a script that identifies your browser

Write a script that displays the date and time

Add a “Last Modified” line to your page

Understand events and event handlers

Have you ever gone to a Web site and noticed that part of the site changed when your mouse cursor moved over it? No doubt you have. Have you ever filled out a form incorrectly and had it “kicked back” to you with a request for additional information? Maybe you’ve hit a site where the Web page told you what kind of browser you were using and suggested a different one. Did you ever wonder how it knew? Chances are it was all done with JavaScript.