JS菜鸟 OPEN函数问题 大神来指教
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ABCDEFG</title>
<script>
function getEvent() {
var eventWin = open ('','HOHO','width=200,height=100');
with (eventWin.document) {
write("事件类型:", event.type);
write("<br>鼠标的x坐标:", event.screenX);
write("<br>鼠标的y坐标:", event.screenY);
}
}
document.write("单击...")
document.onmousedown = getEvent;
</script>
</head>
<body >
<form id="form1" runat="server">
<div>
aaaaa
</div>
</form>
</body>
</html>
------解决方案--------------------
你的弹出窗口动作被浏览器拦截了 你吧拦截去掉就可以了