Chapter 13: Making Your Pages Dynamic

Return to Chapter 13

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Converting Military Time to A.M./P.M.

See it run: Converting Military Time to A.M./P.M.

Script 13.6

This HTML uses IDs to identify each of the radio buttons.

Script 13.7

This JavaScript converts between 24-hour and 12-hour time.