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

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

A less clean way of doing it:

<source lang="js"> <script type="text/javascript"> </script> </source>

Personal tools
linuxreviews
Privacy policy
linux events
ipv6
Networking

You need to login to edit or create pages on this wiki.

IPv6

Search:

linux newz | random page | poetry | free blog | adult dating