Got Frames?

Script by: Duncan Dwyer

     This is an extremely simple script which, when placed in the BODY tag of a file, will not allow someone to view a content page OUTSIDE of its frameset. This is extremely helpful when your frameset is critical to the design of your site. The script will check the frame structure and load the actual frameset page if it finds itself not within a frameset.

     Copy and paste it from here...

OnLoad="if(parent.frames.length==0)top.location='http://www.yourdomain.com';"

     Please note: This script is being offered in simple text format. When you click to Grab the Script, the text should display. Internet Explorer and AOL users may get a blank page or the script may run and produce the effect. If this happens, choose SAVE AS from the FILE menu and save the blank or compiled page.

Back to the HTML and Developer Scripts