Jump to content
xisto Community
TavoxPeru

Avoid Frames

Recommended Posts

Everyone knows that by using FRAMES (HTML FRAME or IFRAME tags) anyone can include the contents of a page into another, but there are situations in which these are done without any authorization from its creators, well, if this happens to you and you want to avoid these cases, you can use the following simple javascript function:

<body onload="if (window.self!=window.top) top.location=self.location;">
Best regards,

Share this post


Link to post
Share on other sites

The only places that still uses frames these days are:a) really old sites created in the days before CSS was available or widely used;:( Google cached pages, showing cache pages beneath the Google header;c) Google Translate, showing the translated page beneath the translation options and Google header;d) tutorial search engine sites, when linking to external tutorials on third-party servers.Although I understand why you would want to 'break' your site out of frames on other sites, most of these sites already have an option to remove or close the frame.

Share this post


Link to post
Share on other sites

I agree that frames were something for the old days, when most of people couldn't use PHP or other programming/scripting languages for their sites, having frames for menus, sidebars was a logical way to do it, to not include all the same stuff in the html. I know some sites still use frames, but it's a matter of habit, because people who used them in the past quite often, still might use them, because they think it's ok, same with using tables in html, new users which learn html today usually use CSS, I personally still use tables if I want to and I just need a result and not a "better" html structure, the main thing it works on most browsers, where using only divs and CSS does not work as I want to on some browsers.. :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.