最常见的是使用window.open的方法,直接打开全屏网页: <!-- function fullwin(){ window.open("bigpage.html","bfs","fullscreen,scrollbars") } //--> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 另外,如果想让已经打开的网页全屏,有以下两种方法: 1.使用ActiveX test function Fkey(){ var WsShell = new ActiveXObject('WScript.Shell') WsShell.SendKeys('{F11}'); } to full [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 2.使用window.open模拟当前页: function toFull(){ if(window.name=="fullscreen")return; var a =window.open("","fullscreen","fullscreen=yes") a.location = window.location.href window.opener=null window.close() } [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]