search for: generateifram

Displaying 1 result from an estimated 1 matches for "generateifram".

Did you mean: generateiframe
2006 Jun 29
3
dynamic generation of iframes and writing to them
...a request to the server while the page is loading - Capture the response by overwriting default document.write() because otherwise it would open a new output stream. adContainer = ""; document.write = function(text){ adContainer += text; }; - Then dynamically create the iframe - function generateIframe(iframeId, sDocument) { var tFrame = document.getElementById(iframeId); var doc = tFrame.contentDocument; if (doc == undefined || doc == null) doc = tFrame.contentWindow.document; doc.open(); doc.write(sDocument); doc.close(); } setTimeout("generateIframe(''Left'', adContaine...