Current Iframe Page - Using Current URL Value When Removing Frame, Etc

Discussion in 'Programming' started by robertuva, Dec 1, 2008.

  1. #1
    When using an iframe is it possible to capture the current URL value (assume a user has navigated to a different page in the iframe so they are not on the original loaded iframe URL) so I can use it when removing a frame, etc? Here is an example of what I don't want (it will help to illustrate my point):

    http://www.mahalo.com/Special:Search?search=richmond

    If you click on the flickr tab, then do a search for a different keyword other than scientist (let's use opa locka for this example), and then click "remove frame", you will note it goes to the following URL:

    http://flickr.com/search/?q=richmond

    Whereas I am trying to get the current URL to open in the remove frame link which would be:

    http://flickr.com/search/?q=opa+locka

    Is that possible? Not looking for complete code at this point, just trying to figure out the capabilities of iframes and if you are able to lock on the current frame URL (assuming someone has navigated from the original) rather than the original, loaded frame URL.
     
    robertuva, Dec 1, 2008 IP
  2. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #2
    the DOM-modell forbids such interactions between framed pages on different domains.
     
    happpy, Dec 5, 2008 IP