Information Technology Reference
In-Depth Information
Getting Interactive: JavaScript
Sometimes great design isn't enough to make your point. Sometimes you want to do
something a bit flashy, or something unique, or something downright useful. One of the
simplest ways to do that is by using JavaScript. JavaScript is a scripting language that
runs inside the viewer's web browser. For example, perhaps you've gone to a site before
and gotten a pop-up message like the one in Figure 1-5.
Figure 1-5. A JavaScript warning
Typically, you see these messages while filling out a forms page or perhaps in an online
shopping cart telling you that your item is out of stock or some such annoying message.
While you might be used to seeing these messages on web pages on your computer,
they can also be shown in a mobile web browser (see Figure 1-6).
Figure 1-6. A JavaScript warning on an Android phone
 
Search WWH ::




Custom Search