Forum Moderators: open
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) self.location.href = "index.htm";
// -->
</SCRIPT>
This was too stop vistors visiting these pages which on their own did not mean why much when viewed out of frames. Do the search engines see this and penalize it in any way?
Many kind regards,
Efex
So, with this particular site, we did two things:
1. Moved the javascript to an external .js file
2. Used a friendlier script that loads the exact page requested into the frameset. You can see the javascript for this technique at message #21 on the Generic Javascript Thread [webmasterworld.com] over in the Browsers and HTML forum.
I have never used seperate .js files; so could you possibly explain exactly how to do this, including the call routine required. I know how to put them into an unspiderable folder tho :)
Many kind regards,
Marc
The js file is best created using a basic text editor like notepad.
save it as a text file "xyz.js"
To call up the file, insert into the head of the HTML document:-
<script language="javascript" type="text/javascript" src="noindex/xyz.js"></script>
Good luck.