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>
posted on 2012-11-08 15:23  YangJin  阅读(176)  评论(0编辑  收藏  举报