SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Frame buster?
-
Aug 3, 2000, 11:07 #1
- Join Date
- Jul 2000
- Location
- Dublin , Ireland
- Posts
- 1,271
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
does anyone know where i can get a javascript that will break a frame coming from another site
-
Aug 3, 2000, 12:35 #2
- Join Date
- Aug 1999
- Location
- East Lansing, MI USA
- Posts
- 12,937
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
its really simple but I dont remember off the top of my head.
Basically it says if document.top != document.self then document.self = document.top
you can probably find it at a free script resource.
Chris
-
Aug 3, 2000, 12:52 #3
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code
/font><HR><pre>
<!-- ONE STEP TO INSTALL Framebreak:
1. Copy the coding into the HEAD of your HTML document
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<script language="JavaScript">
<!--
/* script by www.plebius.org */
self.onError = null;
if( top.location != location ) {
top.location.href = location.href;
}
//--->
</script>
[/code]
Here it is.
------------------
Martin Kretzmann
Plebius Press - A progressive perspective ... "Insert favorite quote here"
We have hosted and perl scripts too!
Bookmarks