• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Design-O-Mite!: Explosive Lay... > Help, I’ve Been Framed, Again!

Help, I’ve Been Framed, Again!

Framed against your will? How do you keep your pages from being frame-napped and placed in someone else’s frameset? Here’s the JavaScript to place in pages you want to keep frameless:

<script language="JavaScript">
if (self.parent.frames.length!=0){
self.parent.location.replace(document.location.href)
}
</script>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint