Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Working with Linked Windows 559

20


First, create the document to be displayed by the main web browser window, shown in
Figure 20.2, by opening your text editor of choice and entering the following lines of
code:


Input ▼


<!DOCTYPE html>




Parent Window - Red


Parent Window - Red< /h1>

Open the Yellow Page in a
new window.


Open the Blue Page in a new
window.


Replace the yellow page with
the Green Page.




Output ▼


This creates a light-red page that links to the other three pages. Save this HTML source
as parent.html.


FIGURE 20.2
The parent window
(the red page).



Free download pdf