document.write(mychar+"<br>")
document.write(mystr+mychar+"的忠實粉絲")
在括號后面加 ; 就不再顯示區域 顯示內容 比較日狗 咋回事
document.write(mystr+mychar+"的忠實粉絲")
在括號后面加 ; 就不再顯示區域 顯示內容 比較日狗 咋回事
2016-02-21
function openWindow(){
var js =confirm("是否打開");
var je =window.open('http://www.xianlaiwan.cn/','_blank','width=400px,height=500px,menubar=no,toolbar=no')
if (js ==true){
document.write(je)
}
else{
alert("bye");}}
為什么我點擊取消也會既彈出alert又會打開網頁。
var js =confirm("是否打開");
var je =window.open('http://www.xianlaiwan.cn/','_blank','width=400px,height=500px,menubar=no,toolbar=no')
if (js ==true){
document.write(je)
}
else{
alert("bye");}}
為什么我點擊取消也會既彈出alert又會打開網頁。
function openWindow()
{ var mymessage=confirm("是否確定");
if(mymessage==true)
{ prompt("確定網址","http://www.xianlaiwan.cn");
window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
{ var mymessage=confirm("是否確定");
if(mymessage==true)
{ prompt("確定網址","http://www.xianlaiwan.cn");
window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
<script type="text/javascript">
function openWindow()
{
var shu=confirm("是否打開"); // 新窗口打開時彈出確認框,是否打開
if(shu==true)
{
window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,toolbar=no,menubar=no');}
}
</script>
function openWindow()
{
var shu=confirm("是否打開"); // 新窗口打開時彈出確認框,是否打開
if(shu==true)
{
window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,toolbar=no,menubar=no');}
}
</script>
function cancelConfigure()
{
var confirmCancel = confirm("Sure to cancel?");
if (confirmCancel == true){
var ele = document.getElementById("con");
ele.style = null;
}
else
{
}
}
{
var confirmCancel = confirm("Sure to cancel?");
if (confirmCancel == true){
var ele = document.getElementById("con");
ele.style = null;
}
else
{
}
}
document.write("<span style='white-space:pre;'>"+mychar+" "+"的忠實的粉絲!"+"</span>") 可以測試一下
2016-02-19