我是不是太自戀哈哈哈
<!DOCTYPE html>
<html>
<head>
<title> new document </title> ?
<meta charset="utf-8"> ?
<script type="text/javascript"> ?
function openWindow() {
var open=confirm();
if(open==true){
var open1=prompt("http://www.xianlaiwan.cn/");
if(open1!=null){
window.open("http://www.xianlaiwan.cn",'hright=500px,width=400,menubar=no,toolbar=no');
}
else{
alert("我好美");
}
}
else{
alert("我太美");
}
}
// 新窗口打開時彈出確認框,是否打開
// 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
</script>
</head>
<body>
???? ?<input type="button" value="新窗口打開網站" onclick="openWindow()" >
</body>
</html>
2019-08-12
代碼放注釋下,看得好難受