JS判断显示器分辨率

<script   LANGUAGE="VBScript">  
  function   myscreen  
  If   screen.width="800"   and   screen.height="600"   Then  
    alert   "你的显示器的分辨率是:"&screen.width&"*"&screen.height  
  ElseIf   screen.width="1024"   and   screen.height="768"   Then  
    alert   "你的显示器的分辨率是:"&screen.width&"*"&screen.height  
  Else   alert   "你的显示器的分辨率是:"&screen.width&"*"&screen.height  
  End   If  
  end   function  
  </script>  
  <input   type=button   onclick="myscreen()"   value="Check">回复4:如何判断当前显示器的分辨率是1024*768还是800*600的嗄!!
<script   languale="javascript">  
  if   (screen.width==1024)  
  {  
    alert("你的显示器的分辨率是1024*768");  
  }  
  if   (screen.width==800)  
  {  
    alert("你的显示器的分辨率是800*600");  
  }  
  </script>
原文地址:https://www.cnblogs.com/cosiray/p/1551940.html