473,686 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2143
<script LANGUAGE="JavaS cript">
if (top == self) {
var newURL = 'http://www.yourdomain. co.uk/index.html'
window.setTimeo ut('GotoIndex() ',0);
}
function GotoIndex() { top.location.hr ef = 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.c om> wrote in message
news:OS******** ******@tk2msftn gp13.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.c om> wrote in message
news:OS******** ******@tk2msftn gp13.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
2743
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 together to work. I have a webpage with frame with nav buttons - Next and Prev - at the bottom whilst the top frame hs a URL from a search engine along the lines of page1search.htm. What I want to do is to press Next and it call a function to change the top frame to page2search.htm but despite...
1
1710
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 message, possibly an alert box, if the file doesn't exist. Right now, if it doesn't exist it just gives a error "page not found" in the frame I'm trying to open it in. Here is my code. function PullPage() { for (var i=0; i<document.Page.Letter.length; i++) { if...
14
11081
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 border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
10
3817
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 site http://www.formulaboats.com I am forced out of my frames and the above link is opened in the whole window. I'm assuming the formualboats site has stopped people from opening their pages in frames but my questions are 1. How did they do this? Is it an HTML thing or a javascript thing? 2. Is...
44
9433
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 new window. However, using the "target" attribute causes my pages to fail validation (strict doctype). The validator says "There is no attribute 'target'.." So...how do I open a link in a new window, without Javscript, and pass strict validation?
0
1061
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 when I run in debug mode I'm still opening ae.aspx, but when I run directly from my localhost I get the right default.aspx. I'm assuming that VS 2005 is opening a cached version of my index.htm. 1) Where would the cache be?
1
3050
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). The original HTM slides have custom animations to allow movie (wmv) playback on mouse click. (All animations have been verified to work when viewing slides in ppt.) Further, I have ensured that the converted HTM file(s) contain only relative file paths. SITUATION #1 When I open the converted...
1
1515
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 that isn't the home page, the frameset doesn't load, so they're only presented with the content of the main frame, not the top logo or sidebar frames. Is there a quick Javascript fix for this? I tried to Google search for a solution, but couldn't come up with the right search terms. Also, when...
7
1934
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. ________________________ ____________F1_________| | F2 |................................ | | .... |................................ | | M | .............F3...............| | E | ...............................|
0
8520
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9057
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8936
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8772
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6442
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2953
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.