JS window对象默认窗口

来源:互联网 发布:sopcast网络电视汉化版 编辑:程序博客网 时间:2024/06/05 06:58
<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>

0 0