Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm

Tittel: How to write a Javascript frame buster
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
When authoring HTML pages, it sometimes becomes necessary or desirable to prevent the page from appearing inside (someone elses) frame set.
Tittel: [Solved] How to write a Javascript frame buster
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
Include the following HTML code somewhere in the document. The script does not need additional configuration, and it can go in the BODY section if you want:

<SCRIPT LANGUAGE=JavaScript>
<!--
  if (top.frames.length!=0)
   top.location=self.document.location;
// -->
</SCRIPT>