Chapter 2: DIY JavaScript
In This Chapter
Creating popup alerts
Using buttons with JavaScript
Navigating with JavaScript
Creating and inserting updatable variables
As we touch on in Chapter 1 of this minibook, you can create simple JavaScript yourself to do things like embed the current time and date in a page, or display a popup. We cover this do-it-yourself dimension of JavaScript in this chapter.
We also note that the kinds of complex JavaScript used for things like drop-down menus and slideshows are beyond what’s covered in this book. Scripts like that are the products of much work by teams of professional programmers who make them available commercially through packages that generate JavaScript. However, that doesn’t mean you can’t use and customize complex JavaScript programs. You don’t have to code JavaScript to customize JavaScript-based programs. The JavaScript you get from an online source can be customized by editing the associated HTML and CSS that work with that JavaScript. We focus on customizing JavaScript-based animation and interactivity in Chapter 3 of this minibook. ...