gorm
05-11-2003, 08:16 PM
Is this possible to do with Netscape and Opera? Been trying some different things but nothing seems to get me into the goal.
Working code for writing to iframe with IE6:
<html>
<head>
<script language="javascript">
function doCopy()
{
var content = document.getElementById("content").innerHTML
var el = window.frames["iframe"]
el.document.write(content)
}
</script>
</head>
<body onload="doCopy()">
<div id="content" style="display:none">
Just some text<br>
Just some text<br>
Just some text<br>
</div>
<iframe id="iframe" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER="No" style="height: 60px" scrolling="yes"></iframe>
</body>
</html>
Working code for writing to iframe with IE6:
<html>
<head>
<script language="javascript">
function doCopy()
{
var content = document.getElementById("content").innerHTML
var el = window.frames["iframe"]
el.document.write(content)
}
</script>
</head>
<body onload="doCopy()">
<div id="content" style="display:none">
Just some text<br>
Just some text<br>
Just some text<br>
</div>
<iframe id="iframe" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER="No" style="height: 60px" scrolling="yes"></iframe>
</body>
</html>