A Most For Frame Users - Free Script.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NastyJack
    Registered User
    • Dec 2002
    • 1291

    #1

    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
Working...