Results 1 to 1 of 1

Thread: break out of an iframe when the iframed url changes?

  1. #1
    Join Date
    Oct 2008
    Posts
    10

    Break Out of IFRAME when URL changes

    Break Out of IFRAME when URL changes

    I'm framing in a portion of anotherwebsite.com on mywebsite.com/page (urls are just for example), which looks just fine and gives me the desired result I'm looking for. However, when someone clicks on a link inside the IFRAME the content inside the IFRAME will change to something like anotherwebsite.com/contactus, but I will not want these other pages to be embedded inside the IFRAME. I would like to have the user broken out of the IFRAME somehow into a pop up window with the full URL or just have the browser load the new URL. Is there anyway to detect this URL change and break the user out of the IFRAME? The website embedded in the IFRAME is not mine, so I don't have control over the content or code behind the site. Thanks.
    Last edited by frenchboy; 01 Nov 2008 at 01:43 PM.

Similar Threads

  1. encrypt and decrypt query string
    By vannova in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 05 Jun 2007, 08:59 AM
  2. firefox wont refresh an iframe
    By Littlened in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 22 Nov 2006, 04:19 PM

Posting Permissions

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