日期:2014-05-16  浏览次数:20414 次

window.open无法弹出固定位置窗口问题
<head>
<script language="javascript">
  function popup(){
  window.open('divTest.jsp','','width=200,height=200,top=150,left=300');
  }
</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<form action="" onsubmit="return false">
省份:<input type="text" id="input" onclick="popup()"/>
  <input type="submit" value="提交"/>
</form>
</body>
</html>


上面是测试弹出固定位置的窗口,为什么window.open没有弹出固定位置的窗口,而是全屏显示divTest.jsp??第三个参数feature中的值的顺序没有影响??

------解决方案--------------------
貌似浏览器问题,我的浏览器是打开一个新的标签页。
使用模态对话框应该可以解决