To detect the browser, please try the following code:


 

<script language=javascript>   
  
<!--   
  document.write(
"<br>OS:"+window.navigator.platform);   
  document.write(
"<br>Browser:"+window.navigator.userAgent);   
  document.write(
"<br>CPU type:"+window.navigator.cpuClass);   
  
//-->   
</script> 

 

 

in a 64bit lab, the following like information will be show:

 

 

OS:Win64
Browser:Mozilla
/4.0(compatible; MSIE 6.0; Windows NT 5.2;.NET CLR 2.0.40903)
CPU type:ia64 


 

相关文章: