I've have got this script, the only thing I want to be changed is the first
part. It has to detect IE version 6 instead of just "Microsoft Internet
Explorer". Can somebody help me out?
I tried "Microsoft Internet Explorer 6" but that doesn't work.
<SCRIPT LANGUAGE="Javas cript">
<!--
bName = navigator.appNa me;
if (bName =="Microsoft Internet Explorer") {
document.write( '<link media="screen" rel="STYLESHEET " type="text/css"
href="styleshee t1.css">')
} else {
document.write( '<link media="screen" rel="STYLESHEET " type="text/css"
href="styleshee t2.css">')
}
//-->
</SCRIPT>
part. It has to detect IE version 6 instead of just "Microsoft Internet
Explorer". Can somebody help me out?
I tried "Microsoft Internet Explorer 6" but that doesn't work.
<SCRIPT LANGUAGE="Javas cript">
<!--
bName = navigator.appNa me;
if (bName =="Microsoft Internet Explorer") {
document.write( '<link media="screen" rel="STYLESHEET " type="text/css"
href="styleshee t1.css">')
} else {
document.write( '<link media="screen" rel="STYLESHEET " type="text/css"
href="styleshee t2.css">')
}
//-->
</SCRIPT>
Comment