function openWindow(){
alert("确认打开网站?");
window.open("http://www.imooc.com","_blank","windth=400","height=500","menubar=no","toolbar=no");
}
alert("确认打开网站?");
window.open("http://www.imooc.com","_blank","windth=400","height=500","menubar=no","toolbar=no");
}
已采纳回答 / qq_云在风中_0
仁兄,你的mydiv没有removeAttribute这个开头的对象属性,所以,代码出错了,就运行不了了。这样<...code...>你用 mydiv.style2.display="none";就不会出错,因为有了以style开头的属性。js是代码,一般出问题了,很难直接看出来,要去浏览器里面调试才能找到问题所在。打开浏览器 F12 调出来调试画面,然后就进行你愉快的调试吧
2016-05-25
最赞回答 / 慕容0029924
var openWindow = confirm('是否打开新窗口') if(openWindow==true { window.open('http://www.imooc.com','_blank','width=400','height=500','menubar=no','toolar=no') }
2016-05-25
已采纳回答 / 小学生_007
function rcolor{ my1.style.color="red";}你的函数少了两个括号function rcolor(){ my1.style.color="red";}
2016-05-25
document.write(mychar+"<br/>");
document.write(mystr+mychar+"的忠实粉丝!")
document.write(mystr+mychar+"的忠实粉丝!")
2016-05-25