麻煩哪位學長給看看,這個哪兒錯了,在瀏覽器窗口上一直沒反應..很著急
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?<meta charset="utf-8">
??
? <script type="text/javascript">
? ?
? ? function ab() {
? ? ? ??
? ? ? var bl=confirm("你正在打開這個窗口.");
? ? ? if(bl==true){
? ? ? ? ? ? window.open('http://www.xianlaiwan.cn','_blank',width=400,height=500')?
? ? ? ? ? ? }
else{
? ? window.alert("你沒有打開這個窗口");
};
? ? }
? </script>?
?</head>?
?<body>?
? ? ? <input type="button" value="新窗口打開網站" onClick= "ab()" />?
?</body>
</html>
2015-12-17
blank',后少個”’“。
500‘)后面少;
2015-12-19
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?<meta charset="utf-8">
??
? <script type="text/javascript">
? ?
? ? function ab() {
? ? ? ??
? ? ? if(confirm("你正在打開這個窗口.")){
? ? ? ? ? ? window.open('http://www.xianlaiwan.cn/','_blank',width=400,height=500,menubar=no,toolbar=no') ? }
else{
? ? alert("你沒有打開這個窗口");
}
? ? }
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網站" onClick= "ab()" />?
?</body>
</html>
2015-12-17
2015-12-17
500后面多個‘