PDA

Click to See Complete Forum and Search --> : Please read if you use IE4 (with no SP)


Mark Sreeves
Nov 1st, 2000, 02:43 AM
I intend to use a component in a web page which requires IE4 SP1 or higher

I need to detect the browser but I have not got a copy of IE4 WITHOUTSP1

I presume that a base IE4 is still document.all so I will need to look further than that.

Am I making sense?

Please paste this into an html page and let me know what the output is.


<HTML>
<HEAD>
</HEAD>
<body>
<script language=javascript>
<!--//
document.writeln("<TABLE border=1>")
document.writeln("<TR><TD>Application</TD><TD>" + navigator.appName + "</TD></TR>");
document.writeln("<TR><TD>Version</TD><TD>" + navigator.appVersion + "</TD></TR>");
document.writeln("<TR><TD>Minor Version</TD><TD>" + navigator.appMinorVersion + "</TD></TR>");
document.writeln("<TR><TD>Platform</TD><TD>" + navigator.platform + "</TD></TR>");

if(document.all)
{
document.writeln("<TR><TD>Document.all</TD><TD>TRUE</TD></TR>");
}else{

document.writeln("<TR><TD>Document.all</TD><TD>FALSE</TD></TR>");
}

document.writeln("</TABLE>")
//-->
</script>
</BODY>
</HTML>


This is the output for IE4 SP1:

Application Microsoft Internet Explorer
Version 4.0 (compatible; MSIE 4.01; Windows 95)
Minor Version ;SP1;
Platform Win32
Document.all TRUE



[Edited by Mark Sreeves on 11-01-2000 at 03:46 AM]