<!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">
//浏览器类型
var browser = navigator.appName;
//浏览器资料
var b_version = navigator.appVersion;
var version = b_version.split(";");
//版本信息
var trim_Version = version[1].replace(/[ ]/g, "");
function openwin() {
//全屏打开新页面
window.open("Default2.aspx", "newwindow", "fullscreen");
//IE 7 || 8
if (browser == "Microsoft Internet Explorer" && (trim_Version == "MSIE7.0" || trim_Version == "MSIE8.0")) {
window.open('','_self','');
window.close();
}
else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE6.0")
{ window.opener();
window.close();
} else {
window.open('','_parent', '');
window.close();
}
}
</script>
</head>
<body onload="openwin()">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
//浏览器类型
var browser = navigator.appName;
//浏览器资料
var b_version = navigator.appVersion;
var version = b_version.split(";");
//版本信息
var trim_Version = version[1].replace(/[ ]/g, "");
function openwin() {
//全屏打开新页面
window.open("Default2.aspx", "newwindow", "fullscreen");
//IE 7 || 8
if (browser == "Microsoft Internet Explorer" && (trim_Version == "MSIE7.0" || trim_Version == "MSIE8.0")) {
window.open('','_self','');
window.close();
}
else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE6.0")
{ window.opener();
window.close();
} else {
window.open('','_parent', '');
window.close();
}
}
</script>
</head>
<body onload="openwin()">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>