課程
/前端開發
/JavaScript
/JavaScript入門篇
怎么跳轉不出新頁面??求解~~~
2017-02-03
源自:JavaScript入門篇 2-7
正在回答
function openWindow(){
? ? // 新窗口打開時彈出確認框,是否打開
? ? ? ? var dailog=confirm('是否打開');
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? ? ? if(dailog === true){
? ? ? ? ? ? window.open('http://www.xianlaiwan.cn/','width=400px,height=500px','menubar=no','toolbar=no')
? ? ? ? }
? ? }
慕數據4347770 提問者
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
3 回答新跳的網頁怎么打不開
2 回答window.open()頁面跳轉疑惑
4 回答最后跳轉網頁怎么不能跳到prompt()里面輸入的網址呢???
3 回答頁面跳轉后是有一串前綴,新網頁無法加載
4 回答為什么這里沒有跳轉頁面?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-02-03
function openWindow(){
? ? // 新窗口打開時彈出確認框,是否打開
? ? ? ? var dailog=confirm('是否打開');
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? ? ? if(dailog === true){
? ? ? ? ? ? window.open('http://www.xianlaiwan.cn/','width=400px,height=500px','menubar=no','toolbar=no')
? ? ? ? }
? ? }