課程
/前端開發
/JavaScript
/JavaScript入門篇
可以給點提示嗎
2016-07-14
源自:JavaScript入門篇 2-7
正在回答
function openWindow()
? ? {
? ? ? ? var OpWindow = confirm("你確認要打開網站嗎?");
? ? ? ? if (OpWindow)
? ? ? ? {var Website=prompt("請輸入你要打開的鏈接","http://www.xianlaiwan.cn/");
? ? ? ? ?Website = window.open("http://www.xianlaiwan.cn/","_black","width=400,heigh=500,menubar=no,toolbar=no");
? ? ? ? ?
? ? ? ? }
? ? ? ??
? ? // 新窗口打開時彈出確認框,是否打開
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? }
function openWindow(){
? ? ? var bo = confirm("確認打開新窗口?");
? ? ? if(bo == true){
? ? ? ? var addr = prompt("請輸入要打開的網址",addr);
? ? ? ? if(addr != null){
? ? ? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? ? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? ? ? window.open(addr,"_blank","width=400,height=500,menubar=no,toolbar=no");
? ? ? ? }else{
? ? ? ? ? window.open("http://www.xianlaiwan.cn"); ?
? ? ? }
? ? }?
?function openWindow()// 新窗口打開時彈出確認框,是否打開
? ? ? ? var _open;
? ? ? ? var temp=confirm("請問是否打開新的網頁?");?
? ? ? ? if(temp)
? ? ? ? {? _open=prompt("請輸入新窗口的網址:"," http://www.xianlaiwan.cn/");
? ? ? ? ? ? window.open('_open','_blank','width=400px,height=500px,munebar=no,toolbar=no');
? ?}
? ??
? ?var aA = confirm("要打開嗎?");
? ? if(aA == true){
? ? ? ? var urls=prompt("input the url you want to open","http://www.xianlaiwan.cn");
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。 ? ? ?
? ? window.open(urls,"_blank","width=400px,height=500px,munubar=no, toolbar=no");
function openWindow(){var open=confirm("確認新建窗口打開網站嗎?");if(open==true){// 新窗口打開時彈出確認框,是否打開var url=prompt("通過輸入對話框,確定打開的網址","http://www.xianlaiwan.cn");if(url!=null)// 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');?}//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。else{alert("再見!");}}?else{alert("再見!");}}
qq_懿qie瀡緣_03574723
天天_ 回復 qq_懿qie瀡緣_03574723
qq_懿qie瀡緣_03574723 回復 天天_
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
4 回答怎么做出來啊
4 回答到底怎么做啊,還是沒有反應???
2 回答2-7的編程題怎么做啊,求教謝謝?。?/p>
4 回答最后的取消設置怎么做???
2 回答到底要怎么做啊 跪求前輩解惑
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-07-16
function openWindow()
? ? {
? ? ? ? var OpWindow = confirm("你確認要打開網站嗎?");
? ? ? ? if (OpWindow)
? ? ? ? {var Website=prompt("請輸入你要打開的鏈接","http://www.xianlaiwan.cn/");
? ? ? ? ?Website = window.open("http://www.xianlaiwan.cn/","_black","width=400,heigh=500,menubar=no,toolbar=no");
? ? ? ? ?
? ? ? ? }
? ? ? ??
? ? // 新窗口打開時彈出確認框,是否打開
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? }
2016-07-14
function openWindow(){
? ? // 新窗口打開時彈出確認框,是否打開
? ? ? var bo = confirm("確認打開新窗口?");
? ? ? if(bo == true){
? ? ? ? var addr = prompt("請輸入要打開的網址",addr);
? ? ? ? if(addr != null){
? ? ? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? ? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? ? ? window.open(addr,"_blank","width=400,height=500,menubar=no,toolbar=no");
? ? ? ? }else{
? ? ? ? ? window.open("http://www.xianlaiwan.cn"); ?
? ? ? ? }
? ? ? }
? ? }?
2016-07-14
?function openWindow()// 新窗口打開時彈出確認框,是否打開
? ? {
? ? ? ? var _open;
? ? ? ? var temp=confirm("請問是否打開新的網頁?");?
? ? ? ? if(temp)
? ? ? ? {? _open=prompt("請輸入新窗口的網址:"," http://www.xianlaiwan.cn/");
? ? ? ? ? ? window.open('_open','_blank','width=400px,height=500px,munebar=no,toolbar=no');
? ? ? ? }
? ?}
? ??
2016-07-14
function openWindow(){
? ?var aA = confirm("要打開嗎?");
? ? if(aA == true){
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? ? ? var urls=prompt("input the url you want to open","http://www.xianlaiwan.cn");
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。 ? ? ?
? ? window.open(urls,"_blank","width=400px,height=500px,munubar=no, toolbar=no");
? ? }
? ? }
2016-07-14
function openWindow(){
var open=confirm("確認新建窗口打開網站嗎?");
if(open==true){
// 新窗口打開時彈出確認框,是否打開
var url=prompt("通過輸入對話框,確定打開的網址","http://www.xianlaiwan.cn");
if(url!=null)
// 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');?
}
//打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
else
{alert("再見!");}
}?
else
{alert("再見!");}
}