課程
/前端開發
/JavaScript
/JavaScript入門篇
為什么我做不出來
2017-04-09
源自:JavaScript入門篇 2-7
正在回答
?把這window.open行中的url的地址改為message試試
function openWindow(){
? ? var message=confirm("是否打開");
? ? // 新窗口打開時彈出確認框,是否打開
if(message==true){
? ? var mynul=prompt("確認是否打開","http://www.xianlaiwan.cn/")
window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,menubar=no,toolbar=no');}
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
e
? ?//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ??
? }
<script type="text/javascript"> ?
? ? function openWindow(){
? ? ? ? ?// 新窗口打開時彈出確認框,是否打開
? ? ? ? var message = confirm("是否打開");
? ? ? ? if(message == true){
? ? ? ? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? ? ? ? var mynul = prompt("確認輸入網址","http://www.xianlaiwan.cn/");
? ? ? ? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。 ? ? ?
? ? ? ? ? ? window.open("http://www.xianlaiwan.cn/","_blank","width=400,height=500,menubar=no,toolbar=no"); ? ? ?
? ? ? ? }
? ? ? ??
? ? }?
? </script>?
根據問題,一步步解剖問題,分塊作答,就行了。學會分解問題是一個程序員的必備技能。
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
5 回答怎么做啊啊
3 回答我彈不出來結果,怎么回事?。?/p>
4 回答輸出鏈接怎么做
3 回答怎么不管用呢,找不出來錯誤啊
2 回答該怎么做呢?我的代碼好像顯示不出來
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-04-16
?把這window.open行中的url的地址改為message試試
2017-04-09
function openWindow(){
? ? var message=confirm("是否打開");
? ? // 新窗口打開時彈出確認框,是否打開
if(message==true){
? ? var mynul=prompt("確認是否打開","http://www.xianlaiwan.cn/")
window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,menubar=no,toolbar=no');}
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
e
? ?//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ??
? }
2017-04-09
<script type="text/javascript"> ?
? ? function openWindow(){
? ? ? ? ?// 新窗口打開時彈出確認框,是否打開
? ? ? ? var message = confirm("是否打開");
? ? ? ? if(message == true){
? ? ? ? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? ? ? ? var mynul = prompt("確認輸入網址","http://www.xianlaiwan.cn/");
? ? ? ? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。 ? ? ?
? ? ? ? ? ? window.open("http://www.xianlaiwan.cn/","_blank","width=400,height=500,menubar=no,toolbar=no"); ? ? ?
? ? ? ? }
? ? ? ??
? ? }?
? </script>?
2017-04-09
根據問題,一步步解剖問題,分塊作答,就行了。學會分解問題是一個程序員的必備技能。