chesneil
08-07-2002, 05:06 PM
I'm sure this is a classic problem...
I've set up a NOFRAMES page with links to the various pages contained in the frames so the viewer can see them individually in the main window, using the browser's back arrow to get back to the NOFRAMES page.
I've also put the following code on each page so that if the visitor comes through to a page in the main window they will be sent to the FRAMESET page:
function checkifframes(){
if (top.frames.length==0)
top.location="FRAMESET.html"
}
<body onLoad="checkifframes();">
The problem, of course, is that if the viewer's browser doesn't support frames, when they click on a link in the NOFRAMES page they will catch a quick glimpse of the linked page before being sent on to the FRAMSET page and back to the NOFRAMES page. i.e. one big circle.
Is there an easy way to get round this?
(If it's a lot of hassle I'll just forego one of the options. In that case, am I right in thinking the NOFRAMES page will help more visitors? I won't be placing any keywords in the META tags on the other pages, so not much chance of someone coming through to one of the other pages, I guess; although I realize that isn't the only way search engines work).
I've set up a NOFRAMES page with links to the various pages contained in the frames so the viewer can see them individually in the main window, using the browser's back arrow to get back to the NOFRAMES page.
I've also put the following code on each page so that if the visitor comes through to a page in the main window they will be sent to the FRAMESET page:
function checkifframes(){
if (top.frames.length==0)
top.location="FRAMESET.html"
}
<body onLoad="checkifframes();">
The problem, of course, is that if the viewer's browser doesn't support frames, when they click on a link in the NOFRAMES page they will catch a quick glimpse of the linked page before being sent on to the FRAMSET page and back to the NOFRAMES page. i.e. one big circle.
Is there an easy way to get round this?
(If it's a lot of hassle I'll just forego one of the options. In that case, am I right in thinking the NOFRAMES page will help more visitors? I won't be placing any keywords in the META tags on the other pages, so not much chance of someone coming through to one of the other pages, I guess; although I realize that isn't the only way search engines work).