function openWindow(){
if(confirm("真的要打開嗎尚坤")){
var addr=prompt("那就輸入你的網址吧");
window.open(addr,'open','width=400,height=500,menubar=no,toolbar=no');
}else{
alert("已取消");
}
}
if(confirm("真的要打開嗎尚坤")){
var addr=prompt("那就輸入你的網址吧");
window.open(addr,'open','width=400,height=500,menubar=no,toolbar=no');
}else{
alert("已取消");
}
}
mychar.style.color="red";
mychar.style.backgroundColor="#CCC";
mychar.style.width="300px" ;
mychar.style.backgroundColor="#CCC";
mychar.style.width="300px" ;
2016-03-03
var mychar= document.getElementById("con");
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
mychar.style.width="300px";
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
mychar.style.width="300px";
2016-03-03
<script type="text/javascript">
function openWindow(){
var my=confirm("新窗口打開時彈出確認框");
if(my==true){
window.open("http://www.xianlaiwan.cn/","_blank","width=400,height=500,toolbar=no,menubar=no")
}
}
</script>
function openWindow(){
var my=confirm("新窗口打開時彈出確認框");
if(my==true){
window.open("http://www.xianlaiwan.cn/","_blank","width=400,height=500,toolbar=no,menubar=no")
}
}
</script>
為什么給變量賦值是數字的時候沒有雙引號,而重復賦值是英文時就有雙引號?這個有什么講究嗎?老師能不能幫忙給解說一下?求等
2016-03-03
注意 家引號
window.open('http://www.xianlaiwan.cn','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes')
window.open('http://www.xianlaiwan.cn','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes')
2016-03-03