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