有一个button点一下,现在的窗口就全屏,怎么实现?
解决方案 »
- FCKeditor 显示不出来!!
- ext中如何得到FORM的元素名称和元素值
- /* 检测字符串是否为数字 ,且允许为空值时*/这样的表单验证怎么做
- ActiveXObject() 在firefox浏览器下不可以用吗?
- 在javascript执行sql语句并循环
- 谁知道怎么做鼠标可以放大缩小图片(不用做放大缩小按钮)像有些网站上看地图 鼠标一圈某个地方 就放大圈某个地方
- 如何取table中的某一项的值
- 一个奇怪的问题?
- 根据浏览器窗口的大小自动填充剩余的空间
- JQuery 做表格插件Handsontable 删除列时 removeRowPlugin: true怎么与后台进行交互
- 这么写对吗? 我怎么获得不了值啊。
- 如何动态生成area标签及coods属性?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<script type="text/javascript">
<!--
function showAll(){
window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);
}
//-->
</script>
</head> <body>
<input type="button" value=" 全屏 " onclick="showAll()" />
</body>
</html>
function max() {
var a=new ActiveXObject("WScript.Shell");
a.sendKeys("{F11}");
}<input type="button" onclick="max()" value="max"></input>