HOW TO force to load a frameset?

B

BlackSabbath

Hi, all
I try to explain (with my #@^^~ english..., sorry...) :
I have a page e.g. Product125.htm

I would that, if a guy call

http:\\www.MySite.htm\Products\product125.htm

to force the load of the "normal" frameset to provide a "normal" menu at the
left of the screen...

Thanks
 
V

Vjekoslav Begoviæ

Add this code into the HEAD of your page (product125.htm):

<script language="JavaScript">
if (top == self) {document.location = "urlofmyframeset"}
</script>
 
B

BlackSabbath

Thank
I tried
In the page recherche.htm :
<head><title>La Fenêtre de Recherche</title>
<link rel="stylesheet" href="medor.css">
<script language="JavaScript">
if (top == self) {document.location = "medor.htm?recherche.htm"}
</script>
</head>
....
and medor.htm , the frameset with :

<html><head><title>Médor</title></head>
<script language="JavaScript">
var pageD = "general.htm"
var docu = document.location.search
if (document.location.search != "")
{pageD =document.location.search.substr(1,(document.location.search.length -
1))}
</script>
<frameset cols="30%,*">
<frame name="menu" src="menu.htm" scrolling="no" frameborder="no">
<frame name="detail" src=pageD frameborder="no" >
<noframes><body></body></noframes></frameset></html>

it's failed....
(so sorry for my poor level in 1/english 2/HTML, it'snt my cup of tea...)
 

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

Members online

No members online now.

Forum statistics

Threads
474,077
Messages
2,570,569
Members
47,205
Latest member
KelleM857

Latest Threads

Top