運(yùn)行不了,哪里有錯(cuò)啊
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
? function Wopen(){
? ? ?var window.open();
? ? window.open('http://idcbgp.cn','_blank','width=600px','height=400px','top=100px','left=0px';)
? ? alert(Wopen()); ?
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開(kāi)新窗口!" / >
</body>
</html>
2017-02-25
同意樓上的 不用變量名 不要使用關(guān)鍵字 和保留字
有語(yǔ)法錯(cuò)誤
2017-02-25
var window.open(); ?聲明變量不要用這么容易混淆的名字
alert(Wopen()); ?在自己的函數(shù)中調(diào)用自己 ?語(yǔ)法錯(cuò)誤 ?這句得放函數(shù)外面