|
|
Avoid Frames | ||
Discussion by TavoxPeru with 3 Replies.
Last Update: November 13, 2009, 8:17 pm | |||
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:
Best regards,
CODE
<body onload="if (window.self!=window.top) top.location=self.location;">Best regards,
Wed Jun 17, 2009 Reply New Discussion
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.
a) really old sites created in the days before CSS was available or widely used;
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.
Sat Jun 27, 2009 Reply New Discussion
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..
Mon Jun 29, 2009 Reply New Discussion
Is there a way to do that, but let some frame it?
Anyways, nice.
Anyways, nice.
Fri Nov 13, 2009 Reply New Discussion
[javascript] Sliding Tile Game ... Help? (1)
|
(4) Computer Infomation
|
Index




