How can a frame be opened from a page if it is not open already ?

B

Bob

I have a website with a frame with a menu to the left and the
informationpages in the right frame side. But Google has linked directely to
the page so if a user click on the link they only get th einformtion page
without the frame.
How can I make th epage open/redirect to th eframe page BUT only if it is
not open already (else ther will be a infinite loop).
 
M

Martin Chantler

Hi Bob,

I don't think this is possible.

What I have done on my site is add this at the bottom of the page:-

Only got this frame? Click Here

Where the Click Here is a link back to my main site page, which displays the
menus etc.

Hope this helps?

All the best,
Martin.
 
B

Bob

Hi Martin

Thanks. Your advice is a good idea.

I have searched some more for an automatic solution and has actually found
this code to be inserted in each page, and it works !

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">

<!--

if (top == self) self.location.href = "index.htm";

// -->;

</SCRIPT>

Regards
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top