<html>
<head>
<title>test</title>
<script type="text/javascript">
/*
function isMobile(val){
//兼容格式: 国家代码(2到3位)-区号(2到3位)-电话号码(7到8位)-分机号(3位)
var telReg = /^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/;
//验证手机号
var mobileReg = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/;
if(mobileReg.test(val) || telReg.test(val))
return true;
return false;
}
var testStr = "0712-aa";
alert(isMobile(testStr));
*/
/*
function testMax(){
//var width = document.body.clientWidth;
//var height = document.body.clientHeight;
//var width = window.screen.width;
//var height = window.screen.height;
//document.getElementById("test").style.backgroundColor = "#000000";
//document.getElementById("test").style.width = width+"px";
//document.getElementById("test").style.height = height+"px";
//window.resizeTo(screen.availWidth,screen.availHeight)
//window.resizeTo(width, height);
}
*/
</script>
</head>
<body id="test" οnlοad="max.Click();">
<object id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Minimize">
</object>
<object id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Maximize">
</object>
<body>
</html>
JS窗口最大化(模拟最大化和点击最大化按钮效果)
最新推荐文章于 2021-12-06 09:47:04 发布