課程
/前端開(kāi)發(fā)
/JavaScript
/JavaScript進(jìn)階篇
window.open()必須要通過(guò)點(diǎn)擊按鈕或其他操作才可以打開(kāi)窗口嗎?
可以通過(guò)倒計(jì)時(shí)什么的讓它自動(dòng)打開(kāi)窗口嗎
2016-09-12
源自:JavaScript進(jìn)階篇 8-17
正在回答
<script type="text/javascript">
function Wopen(){
window.open('http://idcbgp.cn','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes');
? }
? setTimeout("Wopen()",1000);
??
</script>
羽觴丨醉月 提問(wèn)者
setInterval(function(){}, 30)? 可以自己寫個(gè)定時(shí)
舉報(bào)
本課程從如何插入JS代碼開(kāi)始,帶您進(jìn)入網(wǎng)頁(yè)動(dòng)態(tài)交互世界
2 回答window.open
2 回答javascript中window.open()
1 回答window.open的滾動(dòng)條
4 回答window.open屬性問(wèn)題
2 回答location和window.open 的區(qū)別
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-09-12
<script type="text/javascript">
function Wopen(){
window.open('http://idcbgp.cn','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes');
? }
? setTimeout("Wopen()",1000);
??
</script>
2016-09-12
setInterval(function(){}, 30)? 可以自己寫個(gè)定時(shí)