IE下使用控件实现网页全屏

<html>
  
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>test</title>
  
  <script language="JavaScript">
  
  function Fkey(){
  
  var WsShell=new ActiveXObject('WScript.Shell')
  
  WsShell.SendKeys('{F11}');
  
  }
  
  </script>
  
  </head>
  
  <body>
  
  <a href="javascript:Fkey()">点击可以全屏</a>
  
  </body>
  
  </html>

你可能感兴趣的:(IE下使用控件实现网页全屏)