<script type="text/javascript"> function openWindon(){ if(confirm("确定打开新窗口吗?")){ var url = prompt("请输入一个网址","http://www.imooc.com/"); window.open( url,"_blank","toolbar=no, menubar=no, scrollbars=yes, width=400, height=400"); } }</script> </head><body><input type="button" value="新窗口打开网站" onclick="openWindon()" />
添加回答
举报
0/150
提交
取消