为什么错误?
为什么错误?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | function openit() {window.open( 'http://www.imooc.com/' , '_blank' , 'width = 400,height=500,menubar=no,toolbar=no' );} function openWindow() { var open=confirm( '确定是否打开http://www.imooc.com/?' ); if (open==ture) { var open2=prompt( '确定打开下列网址?' , 'http://www.imooc.com' ); if (open2==ture) {openit();} else {alert( "再见!" );} } else {alert( "再见!" );} } |