HTML and CSS Reference
In-Depth Information
EXPLANATION ( CONTINUED )
2
If the current window isn't at the top of the window hierarchy (if it's not the main
window), this assignment forces the page, location.href , into the main window,
top.location.href .
3
This is the body of the fictitious page that will be loaded into the main window of
whoever views it.
Collapsing Toolbars and Menu Bars. You don't always necessarily want to look at
the toolbar or menu bar. It can be in the way of what you're viewing in the main page.
Example 10.19 collapses the frame to bring the main frame to the foreground so that it
will be viewed in the entire window.
EXAMPLE 10.19
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>
<frameset cols="117,450" rows="*">
<frame src="toctoolbar.html" name="menu">
<frame src="tocmain.html" name="main">
</frameset>
<noframes>
<body bgcolor="#FFFFFF">
Your browser needs to support frames to view this page.
</body>
</noframes>
</html>
----------------------------------------------------------------------
(The Startup Main Page)
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor=yellow>
<h1>This is the main page</h1>
</body>
</html>
----------------------------------------------------------------------
(The Menu Bar Page)
<html>
<head>
<title>Menu Bar</title>
 
Search WWH ::




Custom Search