求助打開(kāi)網(wǎng)頁(yè)不對(duì)的問(wèn)題。
請(qǐng)幫我看看,為什么確認(rèn)點(diǎn)了第二次確認(rèn)后進(jìn)入到了imooc.com/code/wangzhi頁(yè)面了,默認(rèn)或者輸入地址都不按地址走,都到這個(gè)頁(yè)面了
請(qǐng)幫我看看,為什么確認(rèn)點(diǎn)了第二次確認(rèn)后進(jìn)入到了imooc.com/code/wangzhi頁(yè)面了,默認(rèn)或者輸入地址都不按地址走,都到這個(gè)頁(yè)面了
2020-01-17
舉報(bào)
2020-01-18
把window.open里面的wangzhi刪掉
2020-01-17
function openWindow() {
? ? ? ? // 新窗口打開(kāi)時(shí)彈出確認(rèn)框,是否打開(kāi)
? ? ? ? var inputStr = prompt("請(qǐng)輸入您要打開(kāi)的網(wǎng)址");
? ? ? ? // 通過(guò)輸入對(duì)話框,確定打開(kāi)的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/
? ? ? ? var website = inputStr || "http://idcbgp.cn/";
? ? ? ? //打開(kāi)的窗口要求,寬400像素,高500像素,無(wú)菜單欄、無(wú)工具欄。
? ? ? ? window.open(website, "_blank", "width=400,height=500,toolbar=no,menubar=no");
? ? }