javascript 小问题。急!!在线等.....
<html>
<head>
<title>窗口的注册退出!</title>
<script language="JavaScript">
function open()
{
window.status="请等待....";
if(window.screen.width=1024 && window.screen.height=768)
window.open("金字塔.html");
else
window.alert("请设置分辨率1024x768 然后打开!");
}
function close()
{
if(window.confirm("确认走啦??!"))
window.close();
}
</script>
</head>
<body>
<input type=button value=注册! onClick="open()" >
<input type=button value=退出! onClick="close()">
</body>
</html>
按钮可以成功显示,但是点击按钮没有效果!
应该是调用函数的时候出了问题,可问题在哪呢?????
急!
高手指教啊,不胜感激,.,