沒有反應(yīng),窗口不顯示
為什么沒有反應(yīng)呢,求大神解答 function openWindow(){ ? ? ? ?var a = confirm("是否打開新窗口"); ? ?if(a == true) ? ? ? ?{ ? ? ? var b = prompt("輸入網(wǎng)址",'http://www.baidu.com/'); ? ? ? ?window.open(b,'_blank','width=400,height=500,toolbar=no,newbar=no'); ? ? ? ?} ? ? ? else ? ? ?{ ? ? ? ? return; ? ? } ? ? ?}
2017-11-16
http:?冒號是中文的
2017-11-16
?function openWindow(){? ? ?
? ? ? ? var a = confirm("是否打開新窗口");? ?
? ? ? ? if(a)
? ? ? ? {
? ? ? ? ? ? var b=prompt("輸入網(wǎng)址");
? ? ? ? ? ? if(b)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? window.open(b,'_blank','width=400,height=500,toolbar=no,newbar=no')
? ? ? ? ? ? }
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ??
? ? ? ? }
? ? ? ??
? ? }
2017-11-13
function openWindow(){ ? ? ? ?
? ? ? ? var a = confirm("是否打開新窗口"); ? ?
? ? ? ? if(a == true){
? ? ? ? var b = prompt("輸入網(wǎng)址",'http://www.baidu.com/');
? ? ? ? if(b){
? ? ? ? ? ?window.open(b,'_blank','width=400,height=500,toolbar=no,menubar=no');
? ? ? ? }
? ? ? ? }else{
? ? ? ? return;
? ? ? ? }
? ? }
//你有一個中文分號