I’ve bumped into a problem with named Iframes and I’m hoping someone here can suggest a solution.
On my web page, I create an iframe called ‘content’, and I load some of the page content into that space. It has been working well, but a problem is cropping up when I open multiple windows (or tabs) with the same page structure.
This architecture serves the intended purpose well and works without complication most of the time but occasionally, content intended for the ‘content’ space in the active window loads into the ‘content’ space in a background window.
Clearly, because it works most of the time, for each window opened, the browser must assign some sort of internal pointer so that it can control each window.
Is there a way to access the internal pointer so that this…
target=’content’
becomes
target=’pointer.content’ or similar ?
An alternative might be to assign a unique name to the ‘content’ space when a window is opened, but I have no idea how to detect and track without resorting to random numbers as names (and even then, I’d need to keep track of random numbers currently in use).
Any suggestions?