M
mel
hi all =)
why does this works ...
<html>
<body>
<iframe id="my_frame" src="blank.html">
</iframe>
<script>
document.getElementById("my_frame").contentDocument.designMode = "On";
</script>
</body>
</html>
... and this doesn't ?
<html>
<body>
<iframe id="my_frame">
</iframe>
<script>
document.getElementById("my_frame").src =
"blank.html";
document.getElementById("my_frame").contentDocument.designMode = "On";
</script>
</body>
</html>
PS in case you are wondering, it is important for me to change
dinamically the src field of the iframe ... btw, is this possible ?
why does this works ...
<html>
<body>
<iframe id="my_frame" src="blank.html">
</iframe>
<script>
document.getElementById("my_frame").contentDocument.designMode = "On";
</script>
</body>
</html>
... and this doesn't ?
<html>
<body>
<iframe id="my_frame">
</iframe>
<script>
document.getElementById("my_frame").src =
"blank.html";
document.getElementById("my_frame").contentDocument.designMode = "On";
</script>
</body>
</html>
PS in case you are wondering, it is important for me to change
dinamically the src field of the iframe ... btw, is this possible ?