 
		weixin_慕容324107
2019-07-31 09:41
<!DOCTYPE html>
<html>
 <head>
  <title> new document </title>  
  <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>   
  <script type="text/javascript">  
  function openWindow(){
   var mymessage=confirm("是否确定打开?");
   
if(mymessage==true){window.open('http://www.imooc.com','_blank',
    
width=400px,height=500px,menubar=no,toolbar=no;)}}
   
  
  </script> 
 </head> 
 <body> 
   <input type="button" value="新窗口打开网站" onclick="openWindow()" /> 
 </body>
</html>
 
				你指的是弹不出哪个窗口???
 
				
window.open('http://www.imooc.com','_blank',
    
width=400px,height=500px,menubar=no,toolbar=no;)
改为
window.open('http://www.imooc.com','_blank',
    
'width=400px,height=500px,menubar=no,toolbar=no')
JavaScript入门篇
741613 学习 · 9869 问题
相似问题