When recording code in the iframe, in the browser status data transmission
Sample:
For example contains in ads.js the fileCode:<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\" s\c\r=\"\ads.workserver.test/ads.js\"></scr"+"ipt>"); </script>
script performs correctlyCode:alert("i\'am loading");
but the connection status is "Data Transfer", in status bar
how close the connection?
Seemed to have a few bugs for me man lots of escapes with the "scr" which should actually be "src" etc...
Code:<html>
<head>
<title>Test This</title>
<script type="text/javascript" language="JavaScript">
function showad() {
var x = document.getElementById("myFrame").contentDocument;
x.write("...<scr"+"ipt type=\"text/javascript\" language=\"JavaScript\" src=\"ads.js\"></scr"+"ipt>");
}
showad();
</script>
</head>
<body>
<iframe border="2" src="framey.html" id="myFrame" >You do not support iframes!</iframe>
</body>
</html>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks