HTML and CSS Reference
To Save an HTML File and Test a Web Page
The following steps save the HTML file and test the Web page.
With the USB drive plugged into your computer, click File on the menu bar, and then
Click the browser button on the taskbar.
Click the Refresh button.
Enter the test data as follows: Sales Price: 174500, Down Payment: 51000, Interest Rate:
5.375, and Number of Years: 30.
Click the Calculate button. The result should be formatted as shown in Figure 10-33.
Planning pop-up windows.
A pop-up window is used to add additional information to a Web page. You must decide
what features you want the pop-up window to utilize. Ask yourself these questions:
Do you want to include the status bar, title bar, address bar, scroll bars, toolbars, and
Do you want the user to be able to resize the window?
Each of these properties can be set as properties in the open() method, creating a custom-
ized look for that particular pop-up window.
What width and height should the window be?
Adding a Pop-Up Window
In addition to alert()
message boxes, Web
developers use pop-up
windows to display more
information or to gain
attention. Use pop-up
windows sparingly because
having many pop-up
windows can annoy visitors.
As you have learned in this chapter, the alert() method is one way to display messages to
a user. These message boxes, however, only display text on a gray background. To create
HTML file in a separate window that displays colors, graphics, animations, and other
media. Such a window is called a pop-up window because it appears over the previously
opened browser window.