Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect page without frames to index with frames 1

Status
Not open for further replies.

deintinis

IS-IT--Management
Nov 14, 2001
174
US
I have a website that uses frames. The home page is my index.htm. The page inside the frame is actually home.htm.

My problem is when someone searches for our site, it often comes up with a link directly to
My home.htm does not have the frames to navigate through the site. I tried doing an automatic refresh to the index.htm page, but it just cycles into an automatic loop.
 
No, I am not using Dreamweaver. This is exactly the problem I am having, but I don't think I can apply the Dreamweaver file to my site.
 
Add this bit of javascript to home.htm
<script>
if (top.location == self.location) {
self.location.replace
(&quot;index.htm&quot;)
}
</script> Clive
 
Thank you so much Clive, it worked like a charm!
[thumbsup2]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top