*************用window.open先后弹出两个新的窗口,怎样实现?***********

hanlinlin 2003-10-16 07:15:43
我的页面里有一个确定按钮 <input type=button name=button1 value=确定>
我想实现点击按钮之后,用window.open的方法弹出一个新的窗口。然后再次点击按钮的时候,又弹出一个新的窗口,而且第一次弹出的窗口仍然还在,没有被第二个新窗口取代。请问怎样实现?
谢谢回复!!
...全文
83 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
angelheavens 2003-10-16
  • 打赏
  • 举报
回复
<input type="button" value="确定" onclick="test()">
<script language="javascript">
function test(){
var tempDate = new Date;
var tempStr="";
tempStr=tempDate.getHours();
tempStr=tempStr+tempDate.getMinutes();
tempStr=tempStr+tempDate.getSeconds();
var htmlurl="test2.asp";
//alert(tempStr);
window.open(htmlurl,tempStr,"width=200,height=100");
}
</script>
tripofdream 2003-10-16
  • 打赏
  • 举报
回复
window对象的open方法第二个参数是用来指定目的窗口名的,指定不同的窗口名或_blank
freetaiger 2003-10-16
  • 打赏
  • 举报
回复
<input type="button" value="确定" onclick="test()">
<scritp language="vbs">
sub test()
if "information1" then
window.open "page1"
else
window.open "page2"
end if
end sub
</script>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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