...

View Full Version : redirect pages - frames



DanielaM
01-16-2003, 02:05 PM
I work with frames on my website.
Pages are all indicated in search engines, but I don't want to open all pages seperatly. So if somebody opens the link on a search engine, the pages should redirect to the main page of the website.
Do you know a script that validates when a single page is loaded that it redirects to the main page?

Thanks for helping.

Daniela

requestcode
01-16-2003, 02:27 PM
Try placing this at the very beginnin of your HEAD section:
<SCRIPT LANGUAGE="JavaScript">
if(self == top)
{location.href="main_page.html"}
</SCRIPT>

DanielaM
01-16-2003, 04:43 PM
Thanks for helping me. It's perfect!!!!!!!


Daniela



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum