Howto unframe web pages using JavaScript

From LinuxReviews
Jump to: navigation, search

These are some JavaScript ways of making your site gets the full browser window when people lcick to your site from one of those sites who open the sites they link to in framed windows (like google images).

[edit] The JavaScript

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

actionscript, apache, asm, asp, bash, c, cpp, csharp, css, diff, div, idl, ini, java, java5, javascript, latex, lisp, matlab, mysql, objc, perl, php, php-brief, python, rails, robots, smalltalk, smarty, sql, tcl, text, vb, vbnet, vhdl, xml, xpp


<script type="text/javascript"> 
if (top.location != location) { 
top.location = location; 
} 
</script>

A less clean way of doing it:

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

actionscript, apache, asm, asp, bash, c, cpp, csharp, css, diff, div, idl, ini, java, java5, javascript, latex, lisp, matlab, mysql, objc, perl, php, php-brief, python, rails, robots, smalltalk, smarty, sql, tcl, text, vb, vbnet, vhdl, xml, xpp


<script type="text/javascript"><!--
var _tl=top.location,_sl=self.location;if(_tl!=_sl)window.top.location=_sl;
//-->
</script>
Personal tools
hardware tests
Categories
Privacy policy
linux events
ipv6
Networking
IPv6

Search:

linux newz | random page | poetry | free blog