Targeting the Whole Window
Eventually in a framed site you want to "break out"... link to a page and have that page take over the entire window. To create this sort of link, we add
TARGET="_top" to the
<A ...> tag:
<A HREF="wwtarget.html" TARGET="_top">
|the link in this page
In the previous example we used
No matter what the other frames are named,
the entire window is always named "_top"
TARGET to refer to a frame we had named
MAIN. In this example, however, we refer to a frame we never named:
"_top". We can do this because the outermost frame (that is, the entire window) is already named "_top". "_top" is a reserved name which is automatically given to the entire window. So when we say
we are saying "put the new web page in the entire window". Note that
"_top" needs to be in all lower-case, it should have quotes around it, and don't forget the underscore ("_").