大神能不能幫我找找問(wèn)題
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>frist write web</title>
<script type="text/javascript">
function openwindow(){
? ?var myweb=confirm("是否打開新窗口?");
? ? if(myweb==true){
? var myopen=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn");
? if(myopen!=mull){
? ? window.open(myweb,"_blank","width=700,height=500");
? }else{alert("sorry");}
}else{alert("sorry");}
}
</script>
</head>
<body>
<input type="button" value="打開新窗口" onclick="openwindow()"/>
</body>
</html>
2016-05-20
我的open 參數(shù)寫錯(cuò)了
2016-05-20
if(myopen!=mull)改為null
2016-05-20