HTML and CSS Reference
In-Depth Information
Figure 13-32
applying the confirm() method
code will be run
only if the user
clicks OK in the
confirm dialog box
5. Save your changes to the file, and then reload hanjie.htm in your Web browser.
6. With the first puzzle loaded, click the Puzzle 2 button and verify that you are
prompted for confirmation before the second puzzle is loaded, as shown in
Figure 13-33.
Figure 13-33
viewing the confirm dialog box
display the nex t puzzle
if the user clicks OK
Search WWH ::




Custom Search