When recording code in the iframe, in the browser status data transmission Sample: <iframe id="myFrame" framespacing='0' frameborder='no' scrolling='no' width='450' height='100'></iframe> <script type="text/javascript" language="JavaScript"> var myFrame = document.getElementById('myFrame'); var myDocument = myFrame.contentDocument; myDocument.write("<scr"+"ipt type=\"text/javascript\" language=\"JavaScript\" scr=\"http://ads.workserver.test/ads.js\"></scr"+"ipt>"); </script> HTML: For example contains in ads.js the file alert("i\'am loading"); HTML: script performs correctly but the connection status is "Data Transfer", in status bar how close the connection?
I can't understand a word from what you say, but anyway, I corrected your HTML code. Hope that helps. <iframe id="myFrame" framespacing='0' frameborder='no' scrolling='no' width='450' height='100'></iframe> <script type="text/javascript" language="JavaScript"> var myFrame = document.getElementById('myFrame'); var myDocument = myFrame.contentDocument; myDocument.write('<script type="text/javascript" language="JavaScript" src="http://ads.workserver.test/ads.js"></script>'); </script> HTML: