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

Chapter 5. Working With Browser Windows > Displaying an Alert when a Window is ...

Displaying an Alert when a Window is Loaded

Occasionally, you might want to flash users a message when they load or reload a page. You can use an alert box to do the job. Script 5.13 shows how to create this very simple trick, and Figure 5.15 shows the result.

Figure 5.15. The resulting alert box.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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