Website Design Edmonton       Website Design Feedback       Website Design Sitemap     Contact Website Design Company
Website Designers R Us - Home
Preventing web pages from load in frames

Once your site is well known, other developers might place links to it loading your pages in the same window or another browser window. This is fine since your site is presented the way you wanted it to be.

What if developers load your pages in a frame along with their interface? This almost amounts to stealing data! The problem is aggravated by the fact that you don't know who is doing it or where your pages are ultimately displayed.

Here is a simple JavaScript code protects your pages from being stolen.

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--

if (self != top)
   {
   top.location.href = self.location;href;
   }

//-->
</SCRIPT>

The code tests whether the top page is the same as the page being displayed. If this is not the case, the URL of the top page is changed to the URL of the present page. Thus, your page always loads in a full browser window the way you wanted it.
Place this script in the HEAD section of each document you want to protect.

Return to Listing

Website Designer R Us is the right company to get your job done professionally and cost effectively. We've seen the good, the bad, and the ugly, and we are here to help you by recommending the services that match your needs based on our knowledge of other website designers and web design companies whom can perform the type work you are needing.
 Home          ::             About Us          ::             Support            ::             Services            ::             Link Partners          ::             Contact

Copyright © 2006-2011 Website Designers R Us, a DOT Specialist Company. All rights reserved.