Chat LIVE With Programming Experts! There Are 23 Online Right Now...

 

Code Snippets

  

JavaScript Source Code


Welcome to Dream.In.Code
Become an Expert!

Join 244,060 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,397 people online right now. Registration is fast and FREE... Join Now!





Break Out Of Frames

If you are worried about your web site opening in someone elses frames, this will "Break Out" of the frames!

Submitted By: skyhawk133
Actions:
Rating:
Views: 7,480

Language: JavaScript

Last Modified: March 9, 2005
Instructions: Just put this in your head tag.

Snippet


  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!--
  3. if (parent.frames.length > 0)
  4. {
  5. parent.location.href = location.href;
  6. }
  7. -->
  8. </SCRIPT>
  9.  
  10.  

Copy & Paste


Comments


There are currently no comments for this snippet. Be the first to comment!

Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month