我的代碼為什么打不開網頁窗口?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對象</title>
<script type="text/javascript">
document.write("歡迎來到慕課網")
function openwin(){
? ? window.open('http://www.xianlaiwan.cn','_blank','height=600,width=400')
? ? }
</script>
</head>
<body>
<form>
<input type="button" value="點擊我,打開新窗口" ?onclick="openwin()"/>
</form>
</body>
</html>
2016-07-19
2016-07-19
no problem
2016-07-19
親,我測試的你的代碼沒問題。你再試試,是否是因為瀏覽器不兼容的問題或者是有些符號該用英文半角的你用成中文的?