110,533
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="WTGS.ZHJC.Web.Index" %>
<!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 runat="server">
<title></title>
<script type="text/javascript">
function OpenPage() {
var udswin = window.open("Default.aspx", "_blank", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
udswin.moveTo(0, 0);
udswin.resizeTo(window.screen.availWidth, window.screen.availHeight);
window.opener = null;
window.open('', '_parent', '');//不显示是否关闭窗体提示框
window.close();
udswin.focus();
//浏览器全屏
//var WshShell = new ActiveXObject('WScript.Shell')
//WshShell.SendKeys('{F11}');
}
</script>
</head>
<body onload="OpenPage();">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","fullscreen=yes")
a.location = window.location.href
window.opener=null
window.close()
}
<body onload="toFull()">
当前页全屏