The Essential Guide to HTML5

(Greg DeLong) #1

BOUNCING BALL


Code Explanation





I chose to put the modest change of the style information in the first application. Table 3-4 shows the third
bouncing ball application, with form validation. Again, I have only commented the new code, but I include
all the code for completeness sake.

Table 3-4. The Third Bouncing Ball Application, with Form Validation

Code Explanation




Bouncing Ball with inputs