469,623 Members | 937 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

if opening page is not in frame then redriect page

When we are search google our keywords . google get some our page. Our home
page name is index.html index html include left and right html. so google
get left or right html. and we would like if someone click the page then
open home page. ( if opening page is not in frame then redirect
ndex.html )

How can we accomplish the problem.

Thanks

Jul 19 '05 #1
2 2062
<script LANGUAGE="JavaScript">
if (top == self) {
var newURL = 'http://www.yourdomain.co.uk/index.html'
window.setTimeout('GotoIndex()',0);
}
function GotoIndex() { top.location.href = newURL; }
</script>

Note, newURL MUST be the full path to the file itself, and NOT just the
domain name.

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Tolgay Gül <to****@veezy.com> wrote in message
news:OS**************@tk2msftngp13.phx.gbl...
When we are search google our keywords . google get some our page. Our home page name is index.html index html include left and right html. so google
get left or right html. and we would like if someone click the page then
open home page. ( if opening page is not in frame then redirect
ndex.html )

How can we accomplish the problem.

Thanks

Jul 19 '05 #2
Thank you for help. It works perfectly

"Tolgay Gül" <to****@veezy.com> wrote in message
news:OS**************@tk2msftngp13.phx.gbl...
When we are search google our keywords . google get some our page. Our home page name is index.html index html include left and right html. so google
get left or right html. and we would like if someone click the page then
open home page. ( if opening page is not in frame then redirect
ndex.html )

How can we accomplish the problem.

Thanks

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Paul Delaney | last post: by
1 post views Thread by Jonathan Rubke | last post: by
14 posts views Thread by D. Alvarado | last post: by
10 posts views Thread by Michael | last post: by
44 posts views Thread by Viken Karaguesian | last post: by
1 post views Thread by mark.martinez2 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.