Hi all
I have an iframe dynamically created that I can access without any
problem using: window.frames['frameName'].document.
Now, if I call this command, remove the iframe from the DOM and
recreate it (with the same name), the same command window.frames
['frameName'].document returns null (though, the iframe exists in the
DOM, the name used to access it is correct... ).
I suspect the iframe (or window.frames['frameName']) is not
completely cleared when I remove it from the DOM as if I run
window.frames['frameName'].document before it has ever been created,
firebug returns a type error (TypeError: window.frames['frameName'] is
undefined). However, the same command returns null (without error)
after creation, deletion and creation again of the same iframe.
is there something I need to do when the iFrame is being removed to
completely clear the memory - I really don't get what is happening -
but I am a beginner in JavaScript.
Thanks in advance for any type of hint.
Cheers
Christophe (using FF 3.0.8)