Regarding your last question, just for reference, the original code is:
Code:
if (!t.contentarea.firstChild || t.contentarea.firstChild.tagName!="IFRAME") //If iframe tag doesn't exist already, create it first
t.contentarea.innerHTML='<iframe src="" style="margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+t.id+'"></iframe>'
window.frames["_iframe-"+t.id].location.replace(contentsource) //set location of iframe window to specified URL
The reason for the delay in setting the IFRAME src using window.frames[] instead has to do with a bug in Firefox (or perhaps it was IE 5.5, I forget) that caused the iframe to not be set to the specified URL otherwise. Again, I forget if it was Firefox or some version of IE. You may want to do a thorough testing of your modified code to make sure it works correctly in all the intended browsers.
Bookmarks