點(diǎn)按鈕沒反應(yīng)
<!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(){
? ? window.open('http://idcbgp.cn,'_blank','width=600,height=400,top=100,left=0)
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開新窗口!"? / >
</body>
</html>
2020-05-24
window.open('http://idcbgp.cn','-blank','width=600,height=400,top=100,left=0') ;
2020-03-19
window.open()這一段,第一個(gè)引號(hào)中,網(wǎng)址最后多加了逗號(hào),逗號(hào)應(yīng)該放在單引號(hào)外面;還有第三個(gè)引號(hào),不完整。