网页全屏显示代码
发布网友
发布时间:2022-05-09 10:17
我来回答
共1个回答
热心网友
时间:2022-04-24 16:49
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body onLoad="DoInit()">
<object id="MaxButton" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Maximize">
</object>
<script language="JavaScript">
function DoInit(){
if (document.body.offsetWidth != screen.availWidth)
MaxButton.Click()
}
</script>
</body>
</html>