Js 浏览器全屏代码(按F11)

<html>
<head>
<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>

你可能感兴趣的:(浏览器)