課程
/前端開發
/JavaScript
/JavaScript進階篇
?window.location.; ?怎樣加target=_blank 屬性呢?
2015-04-21
源自:JavaScript進階篇 8-17
正在回答
window.location.href是改變當前標簽頁的url
如果要你那樣的話應該使用window.open("
舉報
本課程從如何插入JS代碼開始,帶您進入網頁動態交互世界
3 回答window.location.href = "http://www.xianlaiwan.cn/"這句可以換成window.open(window.location.href = "http://www.xianlaiwan.cn/";)嗎?
5 回答為什么window.open("http://www.baidu.com", "width=60 ,heigth=40,_blank");不能實現規定的大小窗口?
2 回答怎么用setAttribute方法添加inerHTML和color屬性呢?
3 回答關于setTimeout(window.open("http://www.baidu.com","_self"),5000);
1 回答location屬性需要加“[ ]”嗎?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-04-21
window.location.href是改變當前標簽頁的url
如果要你那樣的話應該使用window.open("