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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Trapping a webpage inside a frame!

    Hello All
    I need some help with my frames. Im building a website which will only be used on my intranet and not the WWW.

    I have a frameset with a mainframe and a left frame. In the mainframe i have a link to a website which will not stay inside the left frame. Is there a script or technique which will assure that anywebsite i visit will stay within that frame.

    Normally it wouldnt be a problem but its important that all webpages viewed through my frameset stays within the frame.

    I do not wish to use this to trap people using this frame as I mentioned early, this frame is only used on my intranet and is only used by me.

    Thankyou in advance.
    Steve Szasz - Webmaster
    Page1 Ranking and Website Optimization

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Saskatoon SK Canada
    Posts
    174
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thumbs down

    Sorry no. They probably have something like this in their page:

    if (window != top) {
    top.location.href="page.html";
    }

    So basically it's on their side and no matter what you do they're going to get their way.

  • #3
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thankyou for your reply

    Thankyou for your reply.
    Steve Szasz - Webmaster
    Page1 Ranking and Website Optimization

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually there is a technique that'll work for you. Simply disable all scripting (turn off javascript entirely) and their page won't escape from your frame (but any link on the page may still escape your frame when it's clicked).

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    And in the future try reading our forum rules before you ever create another topic.

    Do not crosspost your questions!!

    Crossposted:

    http://www.codingforums.com/showthre...threadid=15709
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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