彈不出窗口 不知道為什么?。。?!
_kokoYi
2017-01-08 13:27:42
TA貢獻122條經驗 獲得超162個贊
<!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://www.xianlaiwan.cn','_blank','width:600,height=400,top=100,left=0,scrollbars=yes');
??}?
</script>
</head>
<body>
????<input?name="button"?type="button"?onClick="Wopen()"?value="點擊我,打開新窗口!"?/?>
</body>
</html>
<!--語法:
window.open([URL],?[窗口名稱],?[參數字符串])把你的url替換成你變量解釋的url,即你的a2變量,還有參數值-->TA貢獻3593條經驗 獲得超1個贊
舉報