Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: mademetop
if (top == self) self.location.href = "index.html";
Thanks in advance
I suggest having the script in an external .js file, for lots of reasons. Keeps your page cleaner, and so far, no Search Engines do any widespread inspection of js files, so it's a second level of safety.
I've even used that particular js as a substitute for a META Refresh (which I hear the SEs *don't* like), although that may not be the wisest or safest thing to do...