I am trying to get the current absolute object path of a frame. For example, I have a web page that has an iframe, but an additional iframe could open inside of that iframe. I am executing a top level function that would submit a form in the current iframe, so it would have to know whether I have loaded 2 iframes deep or 1 iframe deep to get to the currently loaded iframe. Hopefully this illustration will be helpful:
Page Page
| |
| or |
iFrame 1 iFrame 1
|
|
iFrame 2
I want to execute the same function at the page level to check a value in the current frame. I would like to set the path at the page level when frame 1 or frame 2 loads. Then, when you call the function at the page level, it would use the correct path to the variable I am looking for.
Thanks, – Greg