PDA

View Full Version : reloading a frame with NS6


Running Bear
09-13-2002, 01:37 PM
I am attempting to reload a page within frames, but can't get ns6.1 or 6.2 to do it, can anyone see where I'm going wrong

ns4.7 and ie5.5+ are okay



var ns4 = (document.layers);

if (ns4) { //if NS4
// Check if the frame exists. Reload the lefthand menu, else do nothing
if (parent.toc) {
parent.toc.location.href ='fcont_toc.asp'
}

}

// Check if the frame exists. Reload the lefthand menu, else do nothing
if (parent.frames('toc')) {
parent.frames('toc').location.href='fcont_toc.asp'
}



Help would be greatly appreciated

Al

realisis
09-13-2002, 02:20 PM
Try this... and since you're feeding the same page to all browsers (as per your snippet above), you need only the one line.


if (parent.toc) parent.toc.location = "fcont_toc.asp";