Web Analytics Made Easy -
StatCounter Using Frame Protection with an iFrame - CodingForum

Announcement

Collapse
No announcement yet.

Using Frame Protection with an iFrame

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Frame Protection with an iFrame

    Much thanks to Kor for:

    <script>
    function redir(){
    if(parent.frames.length==0){
    window.location="password.html";
    }
    }
    window.onload=redir;

    </script>

    Kor is a genius. However, I have a slight problem. The page I want to use this on has an iFrame in it, which seems to be stopping the script from working properly. It doesn't redirect like it should. Is there a way to fix it? Or must I remove the iFrame?

  • #2
    You should have replied to the original thread so that other members that might help you can follow the discussion. Another disregard of Posting Guidelines.
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      sorry

      I'm sorry, I didn't realize. I just saw the original already on page 4, and thought no one would ever see it again. I won't do it again.

      Comment


      • #4
        FYI, if you reply to a thread, it will be bumped to the top of the list.
        Glenn
        vBulletin Mods That Rock!

        Comment

        Working...
        X