I have built a simple website with framesets www.muskegonawning.com. Sometimes people will find a page in a search engine results that was intended to be displayed inside frames on my website. Is there some code that I can put on each page to check that it is loaded within frames, and it isn't, can it redirect to the frameset?
Thanks,
Jake
-
Stop pages from loading outside of frameset (2 messages)
- Posted by: Jake Luker
- Posted on: January 10 2005 15:30 EST
Threaded Messages (2)
- Stop pages from loading outside of frameset by Martin Straus on January 10 2005 16:23 EST
- Stop pages from loading outside of frameset by Antony Mandilas on January 12 2005 09:56 EST
-
Stop pages from loading outside of frameset[ Go to top ]
- Posted by: Martin Straus
- Posted on: January 10 2005 16:23 EST
- in response to Jake Luker
I don't know the answer to your question, but I DO know i does not belong in the EJB design forum...
Regards,
Martin -
Stop pages from loading outside of frameset[ Go to top ]
- Posted by: Antony Mandilas
- Posted on: January 12 2005 09:56 EST
- in response to Jake Luker
Put a small javascript code under the <body> declaration :
<body>
<script type="text/javascript">
<!--
if (window.top == window.self)
{
window.top.location="index.jsp"
}
//-->
</script>
it will check if the url of the frame is equal with the window url and if so it will redirect users window to the correct url.
regards
Antony