I am facing a very annoying problem with IE. Basically, I need to set the IFrame source using JavaScript, however the source document is executed twice more than once during each call.
The following is simplified HTML code (I simplified it so that readers can quickly understand it. The source is installed via JavaScript, as it will contain dynamic content):
<html>
<head>
<title>Iframe test</title>
</head>
<body>
<iframe id="testIframe" scrolling="no" frameborder="0" src="" width="800" height="600"></iframe>
<script language="JavaScript">
document.getElementById("testIframe").src = "http://localhost/test.php";
</script>
</body>
</html>
test.php . , IE, ( , ). script Chrome Opera, , IE.
src iframe, IE , URL- javascript.
- ? - / ?
Pierre