---
title: "浏览器全屏代码"
author: "roc08"
date: "2011-08-17T16:14:41Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2011-08-17T16:14:41Z"
id: 1151497
url: "https://roc08.iteye.com/blog/1151497"
---

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