Forum Moderators: open
What i need, is to be able to click on these links on page "B" and for the iframe to capture the requested page instead of a new page opening up and losing the iframe.
If you can help with some form of javascript, or if i havent explained clearly enough for you to comment on this thread, please reply either way.
Regards,
LAS
Page "B" (is a page that i am not able to edit)this page i have loaded into an iframe on page "A".
The links on page "B" all have a target window set to Parent. The only page that i have access to edit is page A with the iframe.
And to make matters a bit more difficult, page B is a page made up of three frames.
What i need, is to be able to click on these links on page "B" and for the iframe to capture the requested page instead of a new page opening up (because of the parent target) and losing the iframe.
Cheers.
What ive managed to do:
1 - Read in the details of the iframe document contained within my page (Window).
2 - Having read the iframe document, i then set the target elements on the document to "self" instead of "parent". This then allows all links, when clicked, to open in the same iframe window.
The problem i have now is;
When i click on a home link within the iframe document that points me back to the initial iframe source document the code i have implimented to change the target elememnt, no longer works. Is is possible to some how get javascript to run the code each time the iframe document changes within the window?
Im assuming it would be some kind of "on document source change" event, i just need an initial pointer to the event launching code.
If anyone can help id appreciate it. If you need to see any code ive done so far i can upload it on here.
Thanks.