Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: url detection

  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation url detection

    I have a couple of iframes on my page, and i want to make sure they are all up including my parent, i want this so no one is opening one of the iframes without the parent being opening, would it be best to use url detection on the parents or contacting the parent, and the iframes to make sure they are all open?

    If so how, if not how

    Thanks.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    <script type="text/javascript">
    if(self==parent)
    {
    window.location = 'framepage.html';
    }
    </script>
    That goes in your head tags of the pages in that would be in the frame.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    Code:
    <script type="text/javascript">
    if(self==parent)
    {
    window.location = 'framepage.html';
    }
    </script>
    That goes in your head tags of the pages in that would be in the frame.
    And I didnt think it would be that easy XD thanks!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •