iFrame Redirection

admin

Administrator
Staff member
Okay, instead of using the Frontpage Page Included feature, I think I'll use iFrames on all my pages. However, I want to know if there is a redirect script to redirect the user if their browser is incompatible with iFrames. For example, some people use browsers that don't support iFrames and some use the older ones. I do not know which browsers support which; can anyone tell me? Please also tell me where I can find a redirect script that will let me easily define which browsers are compatible and not and be able to redirect them to the correct page.<br />
<br />
Thank you.<!--content-->The only mainstream browser that doesn't support the IFRAME element is Netscape 4. It does, however have an ILAYER element which can emulate an IFRAME:<br />
<br />
<iframe frameborder="no" <br />
src=http://www.htmlforums.com/archive/index.php/"http://www.somesite.com/commonfile.html"<br />
name="commonFrame" scrolling="no" width="100%" marginwidth="0" marginheight="0"><br />
<ilayer src=http://www.htmlforums.com/archive/index.php/"http://www.somesite.com/commonfile.html"><br />
</ilayer><br />
</iframe><br />
<br />
<br />
To test for Netscape 4, check for document.layers:<br />
if (document.layers) alert("Bloody Netscape 4!");<!--content-->
 
Back
Top