• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Interacting with the User > Debugging and Troubleshooting Script Pr...

Debugging and Troubleshooting Script Problems

Don't Overdo It

I've included a number of alert, confirm, and prompt boxes in my page and now people are sending me nasty email messages.

There are few things in this world as annoying as an unnecessary dialog box, and a page that includes a number of such annoyances will likely cause much disgruntlement. (I remember visiting a page that kept throwing up alert box after alert box. After about half a dozen of them or so, I gave up, pressed Ctrl+Alt+Delete to forcibly shut down the browser, and never went back.) So when designing your scripts, bear in mind the following points concerning the alert(), confirm(), and prompt() methods:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint