Javascripts > Javascript Frames > Check Frames Page Script
Script Title: Check Frames Page Script
Description: Most keep-page-in-frames scripts only check to see if the page is inside a frame or not. But this script detects if it is in the correct frame, too.
Example: No example available for this script.
Copy the following code into your <HEAD></HEAD> tags.<script language="javascript"> <!-- //Check Frames Page Script //by Krazy Katz Productions //Please keep this notice intact var framespage="index.html" //This is the frames page for your page. //No need for editing below here. if (top.location==document.location){ top.location=framespage; }else{ var parent_location=parent.location.href; var str_beginning=parent_location.length-framespage.length; if (parent_location.substring(str_beginning, parent_location.length)!=framespage){ parent.location=framespage; } } //--> </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email