<a onclick="window.open('http://www.163.com','','fullscreen=1');">sdf</a>
解决方案 »
- 关于CSS选择器 (IE6、7 支持这样的写法吗?)
- 求助,关于FF取得DIV透明值的问题
- 关于event.clientX无法获取参数
- 急?请问showmenu(e,vmenu,mod)函数的意思?
- 如何确定一个值是否存在于下拉列表框中
- 如何编写一个jquery插件,带传入函数的功能
- 求多选的<select>元素与另一个多选的<select>元素相互移动选项的代码!!!!!!!!!!!!!!!!
- replace中正则请教。
- 如何控制window.showModalDialog()所弹出窗口的大小,位置?
- Cannot read property 'length' of undefined 问题
- 在a.html文件中,用document.write写的东西后,如何重新清空改页面?
- 请问新浪网中那个网友评论的分页系统是怎么做的?(高分请教)
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","fullscreen=yes")
a.location = window.location.href
window.opener=null
window.close()
} </SCRIPT>
<html>
<body>
<input type=button value=全屏 onclick=toFull()>
//在这儿填写具体内容
<input type=button value=关闭 onclick=window.close()>
</body>
</html>
liuliu26(小雨)
weidegong
我是阿比,多谢您的帮忙!
另外请教一下,能否按一次"F"键就让它全屏。
比如<input type="button" accesskey="F" value="全屏" onclick="toFull()"> 可按"ALT+F"
function test()
{
if(event.altKey && event.keyCode==76) alert("Alt+L");
}
</script>
<body onkeydown="test()">Alt+F是文件菜单的快捷键,不妥,试试Alt+L
<input type="button" accesskey="F" value="全屏" onclick="toFull()">
<script>
function toFull(){
alert();
}
</script>
weidegong
qiushuiwuhen
的两颗"红心"的精神!
我使用的语言是ASP.NET + C#,在JavaScript上有很多不足,非常感谢你们的帮助。