<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript">
function openwindow(){
window.status="系统当前状态:您正在注册用户……";
if(window.screen.width == 1024 && window.screen.height == 768){
window.open("register.html");
}
else{
window.alert("请设置分辨率为1024X768,然后在打开");
}
}
function closewindow(){
if(window.confirm("您确认要退出系统吗?")){
window.close();
}
}
</script>
</head>
<body bgcolor="#CCCCCC">
<table border="0" align="center" bgcolor="#ffffff">
<tr>
<td><input type="button" name="regButton" value="进入" onClick="openwindow()">
<input type="button" name="exitButton" value="退出" onClick="closewindow()"></td>
</tr>
</table>
</body>
</html>
JS window对象默认窗口
最新推荐文章于 2023-09-05 19:57:43 发布