devxlogo

Using IFRAME Across Browsers

Using IFRAME Across Browsers

Question:
I want to make my site cross-browser compatible, but I rely on a lot of iframes in the IE version. According to the original HTML 4 specification, it should be possible to use the object tag instead. Can you tell me how to do this, as the way specified by W3C doesn’t seem to be the way implemented in IE5?

Answer:
As you’ve noted, IE5 doesn’t always follow the W3C standards. In your case, I’d check to see if the browser supports IFRAME, and if it does, then use what you’ve got now (IE 4+, Netscape 5+). If it doesn’t, use LAYER (Netscape 4).

devx-admin

Share the Post: