這個行嗎?
<!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.xianlaiwan.cn/','width=400','height=500','menubar=no','toolbar=no')
? ? ? ? }
? ? ? ? else{
? ? ? ? ? ? document.write("取消")
? ? ? ? }
? ? ? ??
}
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網站" onclick="openWindow()" />?
?</body>
</html>
2016-02-19
還不夠完善,題目還要求通過對話框確定網址,其他的同上
2016-02-19
直接打開了網站,這題有個輸入對話框你沒有寫
2016-02-19
少了'_blank',因為要打開新窗口,同時也要確定無菜單欄、無工具欄。
2016-02-19
少了請輸入網址然后默認是www.xxxxxxxxxxxxx的那一步