Break Out of Frames


/ Published in: JavaScript
Save to your folder(s)

Place this script on any page of your site that you want to ensure doesn't end up in someone else's frame.


Copy this code and paste it in your HTML
  1. if (top.location != self.location) {
  2. top.location.replace(self.location);
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.