Cats777
11-17-2004, 02:46 AM
How do I go about redirecting visitors to the main page when they enter a page that doesn't have frames?
|
View Full Version : Redirecting when not in a Frame Cats777 11-17-2004, 02:46 AM How do I go about redirecting visitors to the main page when they enter a page that doesn't have frames? Jared 11-17-2004, 03:04 AM Elaborate a bit more on the problem. I didn't quite understand what you meant. Cats777 11-17-2004, 03:34 AM My site uses frames. Some of my pages show up on a search engine. When a visitor clicks on that page, there are no frames. Thus, there's no way that visitor can surf the rest of the site. Cats777 11-23-2004, 08:02 PM Nobody knows? =\ Jared 11-24-2004, 12:05 AM so when the visitor clicks on a link, it redirects them to a page, but the page isn't showing the iframes. Correct? pb&j 11-24-2004, 03:35 AM i am really bad at javascript, but that may be your solution. it should check to see if the window is the same as the current page reference and change to your main site area if a true value is found. this will probably not work, but give it a go. put it in the HEAD area of one of the pages that appears inside of a frame normally. then try to visit that page directly in your browser to test it. <script type="text/javascript"> <!-- if (window = location.href){ top.location.href='http://www.yoursite.com/'; } // --> </script> Cats777 12-08-2004, 07:24 PM If a visitor is looking at a page without frames, I want them to be redirected to a page that does. And no, that code doesn't work. |