Is this a very good browser check?
<html>
<head>
<title>wB.htm </title>
<script type="text/javascript">
var adBtype = "??";
function wB() {
if (document.getEl ementById && !document.all) {
adBtype = "NS6+";
} else if (document.getEl ementById && document.all) {
adBtype = "IE5+";
} else if (document.all) {
adBtype = "IE4";
} else if (document.layer s) {
adBtype = "NS4";
}
alert(adBtype);
}
</script>
</head>
<body onload="wB()">
<body>
</html>
Opera 6.01 returns "IE5+"; don't know about others...
<html>
<head>
<title>wB.htm </title>
<script type="text/javascript">
var adBtype = "??";
function wB() {
if (document.getEl ementById && !document.all) {
adBtype = "NS6+";
} else if (document.getEl ementById && document.all) {
adBtype = "IE5+";
} else if (document.all) {
adBtype = "IE4";
} else if (document.layer s) {
adBtype = "NS4";
}
alert(adBtype);
}
</script>
</head>
<body onload="wB()">
<body>
</html>
Opera 6.01 returns "IE5+"; don't know about others...
Comment