Why would an iframe become unaccessible after creating, destroying, and then re-recreating it? On the first creation I can access it fine with this line:
//obj gets HTML with the IFrame
obj.innerHTML = object.ResponseText;
//access iframe
var myFrame = window.frames['frameName'];
//access DIV inside iframe
var myDIV = myFrame.document.getElementById('innerDIV');
I then do this:
obj.innerHTML = "";
Then I can toggle to re-rerun the first code block which will then no longer work.