472,328 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 2104
<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Delaney | last post by:
Hi there Could someone please help, I have very little grasp of javascript, I have tried but cannot get either of the two things I want to do...
1
by: Jonathan Rubke | last post by:
I am getting a filename from one frame and opening it in another frame. It works fine if the file exists, but I'm trying to get it to show an error...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or...
10
by: Michael | last post by:
Hi, I'm trying to load a page external to my website into my frame. I have several links on my page that work fine but when connecting to the...
44
by: Viken Karaguesian | last post by:
Hello all, On occasion I want to open hyperlinks (images, etc.) in a new window. In the past, I've used target="_blank" to open the link in a...
0
by: Alex A. | last post by:
I have an html frameset page called index.htm. I have a frame that points to ae.aspx, I've changed the frame to point now at default.aspx. Yet...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked)....
1
by: mark.martinez2 | last post by:
Here's my problem: It is necessary to have people enter in direct links to pages on my site, which is frame-based, but when they go to any page...
7
by: swapcool | last post by:
Hi, I am a page having a menu and a few frames life below. The links in menu open in F3 frame. I also have back/forward buttons in F1 frame. ...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.