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