Posted by jojo on 10/14/06 11:52
alxasa@gmail.com wrote:
> Try navigating to HOTMAIL from the resulting page.... eventually it
> pops out of frames mode. Is there any different approach to this that
> will not do that? Alxasa
It's not very kind to view webpages of other people in a frame in your
site. What would you say if I would display a beautiful site of yours in
a frame of my site so it looks like it was mine? No, you really
shouldn't do that. Many people try to prevent that within their code.
You can for example add this script to your site to make sure that it
isn't displayed in a foreign frame (of course it only works if JS isn't
switched off):
<script type="text/javascript">
if (window!=top.window) location.href="LINK TO YOUR SITE";
</script>
Or you could add a base-tag to your website to break the frameset if a
link is clicked:
<base href="LINK TO YOUR SITE" target="_top">
So you see it's quite simple to brevent a site from beeing displayed in
a frameset. And that's quite good.
jojo
[Back to original message]
|