What One Needs to Know
- Browser events and event handlers
- Writing functions
- Grabbing form element values
- Validating data by type
- DOM manipulation
That’s a lot of information, and some of it (specifically involving events) is browser specific. To highlight why this is a problem as a writer, let’s look at how one can write a PHP book:
- This is an HTML page.
- Viola! This is now a PHP page (i.e., file extension and PHP tags).
- Here’s how to print something using PHP.
- Here’s how to create a variable.
- And so forth.
The other solution I came up with is clearly a cheat, but sometimes one has to cheat. In Chapter 2, I demonstrate and discuss the bare minimum of things:
- Two events: onload and onsubmit
- Creating a simple function
- How to reference a form element