<input name="button" type="button" onClick="char()" value="运行" / ><script>function char(){ var xz1=confirm("问题1"); if(xz1==true) { var xz2=confirm("问题2"); if (xz2==true) { for (var i=1;i<5;i++) { window.open('www.duba.com','_blank','width=600,height=400,top=100,left=0'); } } else { window.open('www.imooc.com','_blank','width=600,height=400,top=100,left=0'); } } else { window.open('www.hao360.com','_blank','width=600,height=400,top=100,left=0'); }}</script>
添加回答
举报
0/150
提交
取消