設(shè)置window.open中的參數(shù)不起作用
<!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','menubar=no','toolbar=no','scrollbars=no','resizable=yes')? ? ??
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開新窗口!"? >
</body>
</html>
2018-07-02
你把引號(hào)都去掉試試,我試過(guò)了,可以的。還有,參數(shù)字符串只加一個(gè)引號(hào)就行,不用分別引起來(lái)。
2018-06-04
第三個(gè)參數(shù)要寫在一個(gè)引號(hào)里面,用逗號(hào)隔開
2018-06-03
?window.open('http://idcbgp.cn','_blank','width=600,height=400,top=100,left=0,menubar=yes,toolbar=no,status=no')? ? ??
小括號(hào)的問題