ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

BREAK OUT OF FRAMES

Many web sites constructed with frames attempt to add to their site content by framing other web sites so that their banners always appear around the content of the other site. One quick way to solve this problem is by using this little Break Out of Frames script. If anyone attempts to frame your web site, this script automatically breaks the frame and expands your web page to full view.

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">

<!--
if (parent.frames.length > 0)
{
parent.location.href = location.href;
}
-->

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
28 August 2008