Using Window Events
You can use several events associated with the window object in your scripts to control what they do and when they do it. The events are listed in Chapter 19. This section gives you an example of how you might use a few of them. Listing 20.5 shows Window4.htm. This XHTML document creates another Web browser window, loads another document (Text.htm) into it, and automatically scrolls through the document. Figure 20.4 shows these two windows after they are first created.
Figure 20.4. Small child windows are a good way to show additional information related to your Web site.
Tip
Creating small "pop-up" windows can be a good way ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.