Forum Moderators: open

Message Too Old, No Replies

IFrame equivalent in NS

Compatibility

         

T Suresh Babu

9:24 am on Mar 14, 2002 (gmt 0)

10+ Year Member



I want to implement the same feature of IFrame in NS 4x,6x.

Do we have any equivalent tags or alternative features like IFrame in NS.

tedster

10:14 am on Mar 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape 6 does support iframes. I read on Macromedia's site that there are some limitations on that support, but they didn't say what the limitations are! Still trying to learn more.

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>

T Suresh Babu

10:20 am on Mar 14, 2002 (gmt 0)

10+ Year Member



I used three pages pageA.html, pageB.html, pageC.html.

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>