View Single Post
Old 12-31-2002, 07:08 PM  
NastyJack
Registered User
 
Join Date: Dec 2002
Posts: 1,291
A Most For Frame Users - Free Script.

Description: you probably dont want your pages to be accessed individually - This script ensures they are not.

Directions: Just add the below code to the <HEAD> section of ALL the page(s) you wish to ensure are viewed only inside your frames setup

<script>

//Break-out-of-frames script
//By JavaScript Kit (http://javascriptkit.com)
//Over 400+ free scripts here!

//if not in frames
if (parent.frames.length==0)
//CHANGE "index.htm" to the URL of your main frame page
window.location.replace("index.htm")
</script>

Be sure to change "index.htm" inside the script to the URL of your main frames page (ie: http://www.mydomain.com/index.shtml).

This script can be found at:
http://wsabstract.com/script/script2/keepframes.shtml

Regards
NastyJack
NastyJack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote