Forum Moderators: open
For Netscape 4 compatibility, you can wrap ilayer tags inside a set of iframe tags. NN4 ignores the iframe and NN6, IE and Opera will ignore the ilayer. But you can't get scroll bars with an ilayer, so you need to test your layout well.
<IFRAME SRC="foo.html">
<ILAYER SRC="foo.html"></ILAYER>
</IFRAME>
I tried the following script for pageA.html
It works in NS4x. But scroll bar doesn't appears. When we click the link <for netscape> the url in the ilayer changes in NS4x.
<script>
function change()
{
document.layers["content"].src="pageA.html";
window.reload();
}
</script>
<iframe name="content" src="pageB.html"> (for IE/Opera)
<ilayer name="content" src="pageB.html"> (for NN)
</ilayer>
</iframe>
<br>
<a href="pageC.html" target="content">Link to C.html Targetting the content frame</a>
<br>
<br>
<a href="javascript:change()">For Netscape</a>