• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. history > Example: Moving a Separate Frame Back

Example: Moving a Separate Frame Back

One of the things which I find most annoying about many framed Web sites is the need to click the Back button over and over again, backing up one frame when I want to back up the other. There's a rather easy workaround, though. Note Listing 17.1, which has five separate HTML files.

Listing 17.1. Moving Through Frames

<!-- 17lst01a.htm -->
<html>
<frameset cols="25%,*">
   <frame name="framea" src="17lst01b.htm" />
   <frame name="frameb" src="17lst01c.htm" />
   </frameset>
</html>

<!-- 17lst01b.htm -->
<html>
<body>
Start page.
</body>
</html>

<!-- 17lst01c.htm -->
<html>
<body>
<a href="17lst01d.htm" target="framea">Move frame A forward</a>
</body>
</html>

<!-- 17lst01d.htm -->
<html>
<body>
<p>Forward in Frame A.  <a href="17lst01e.htm"
target="frameb">Move frame B forward</a></p>
</body>
</html>

<!-- 17lst01e.htm -->
<html>
<body>
<a href="javascript:history.go(-2);">
Let's move the other frame back.</a>
</body>
</html>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint