Code Snippets

  

JavaScript Source Code


Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,108 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,160 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: 6,459

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!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month