弹出窗口的问题。。。

sunauqt 2003-08-30 03:14:56
<script>
function test(htmlurl,width,height) {
var newwin=window.open(htmlurl,"v_win","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height);
}
</script>
<form name="formscsend" action="showmsg.php?action=submit" onsubmit="return Validate(this,this.hichknum.value);javascript:test('showmsg.php','v_win','200','100')" target="v_win">
<input type="image" src="images/button10.gif" border="0">
</form>

这里的弹出窗口为什么控制不了大小呢?还有,弹出的窗口还有菜单、滚动条之类的东西,test函数里的设置都没有起作用,怎么回事?
怎么才能用上述的FORM形式弹出指定大小和设置的窗口呢?
...全文
79 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanghr100 2003-08-30
  • 打赏
  • 举报
回复
楼上, 你把我改后的代码试一下.
我在自己的机子上测试成功了,打开了一个没有菜单,也没有滚动条的.窗啦
我有是XP+IE6.0
sunauqt 2003-08-30
  • 打赏
  • 举报
回复
不行啊,兄弟们,还是弹出一个带菜单的、有滚动条的一个窗口来,郁闷ing.......
wanghr100 2003-08-30
  • 打赏
  • 举报
回复
<script>
function test(htmlurl,v_win,width,height) {
var newwin=window.open(htmlurl,"v_win","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height);
}
</script>
<form name="formscsend" action="showmsg.php?action=submit" onsubmit="javascript:test('showmsg.php','v_win','200','100');return Validate(this,this.hichknum.value)" target="v_win">
<input type="image" src="images/button10.gif" border="0">
</form>
possible_Y 2003-08-30
  • 打赏
  • 举报
回复
<form name="formscsend" action="showmsg.php?action=submit" onsubmit="return Validate(this,this.hichknum.value);window.open('','v_win','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=100')" target="v_win">
<input type="image" src="images/button10.gif" border="0">
</form>

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧