Click to See Complete Forum and Search --> : Writing to Iframe with Netscape and Opera?


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>

gorm
05-12-2003, 05:24 AM
Thanks Mr. Clark!

That was an interesting factor! It works on Netscape although Opera 7 doesn't work (perhaps this feauture isn't implemented yet).

Also..would it be possible to add a vertical scrollbar to a iframe with Netscape? Or should I use some layer for doing this. I am only targeting Netscape6->