代碼又哪寫錯(cuò)了???為什么點(diǎn)擊沒反應(yīng)???
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>單擊事件 </title>
<script type="text/javascript">
? function openwin(){
? ? ?window.open('http://idcbgp.cn','_blank','height=600,width=400,top=100,toolbar=no,left=0,menubar=no,scrollbars=no,status=no');}
</script>
</head>
<body>
? <form>
? ? <input name="點(diǎn)擊我" type="button" value="點(diǎn)擊我" onclick="openWin()"/>
? </form>
</body>
</html>
2019-08-13
JS里面分大小寫,?openwin()和openWin()是不一樣的
2020-01-05
onclick="openWin()" 改成onclick="openwin()"即可