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

7. Managing Multiple Frames > 7.6. Assuring a Page Loads in its Frameset

Assuring a Page Loads in its Frameset

NN 2, IE 3

Problem

You want a page bookmarked from a frame within a frameset to load within its frameset.

Solution

For a frameset that always consists of the same framed documents, include a script patterned on the one below in each frame’s document. This solution includes a test for a peculiarity of the Netscape Navigator 4 browser described in the Discussion section:

var isNav4 = (navigator.appName =  = "Netscape" && 
    parseInt(navigator.appVersion) =  = 4);
if (top.location.href =  = self.location.href) {
    if (isNav4) {
        if (window.innerWidth != 0) {
            top.location.href = "frameset12.html";
        }
    } else {
        top.location.href = "frameset12.html";
    }
}

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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