<script type="text/javascript">
function openWindow()
{var a=confirm("FBI Warning");
if(a==true)
{
var b=prompt("確定???","http://www.xianlaiwan.cn/")
window.open(b,'_blank','width=400px,height=500px,toolbar=no,menubar=no')
}
else
{null; }
</script>
function openWindow()
{var a=confirm("FBI Warning");
if(a==true)
{
var b=prompt("確定???","http://www.xianlaiwan.cn/")
window.open(b,'_blank','width=400px,height=500px,toolbar=no,menubar=no')
}
else
{null; }
</script>
function openWindow()
{var a = confirm("請確認是否打開!");
if(a==true){
var b = prompt("請輸入你要打開的網址");
if(b!=null)
{
window.open(b,'_blank','width=400,height=500,toolbar=no,menubar=no');}
else{alert('請輸入你要打開的網址'); }
}else
{alert('goodbye');}}</script>
{var a = confirm("請確認是否打開!");
if(a==true){
var b = prompt("請輸入你要打開的網址");
if(b!=null)
{
window.open(b,'_blank','width=400,height=500,toolbar=no,menubar=no');}
else{alert('請輸入你要打開的網址'); }
}else
{alert('goodbye');}}</script>
function openWindow(){
var OPWconfirm = confirm("是否打開新的窗口?");
if(OPWconfirm = true){
var url = prompt("請輸入您想要前往的網址","https://www.hao123.com/");
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');}
else{alert("打擾了")
}
}
var OPWconfirm = confirm("是否打開新的窗口?");
if(OPWconfirm = true){
var url = prompt("請輸入您想要前往的網址","https://www.hao123.com/");
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');}
else{alert("打擾了")
}
}
window.open('http://www.xianlaiwan.cn','_blank','width=600,height=400,top=100,left=0'
2019-09-28
function openWindow(){
var openStr = confirm("是否打開新窗口");
if(openStr == true)
{
var mywin = prompt("請輸入網址:","http://www.xianlaiwan.cn/");
if(mywin)
{
window.open(mywin,'width = 400','height = 500','menubar = no','toolbar = no');
}
}
}
var openStr = confirm("是否打開新窗口");
if(openStr == true)
{
var mywin = prompt("請輸入網址:","http://www.xianlaiwan.cn/");
if(mywin)
{
window.open(mywin,'width = 400','height = 500','menubar = no','toolbar = no');
}
}
}
不顯示
<body>
<p id="ee">java</p>
<h2>wrojfdlk</h2>
</body>
<script>
var mydd = document.getElemtenById("ee");
document.write("yiqian:"+mydd.innerHTML);
mydd.innerHTML="script";
document.write("xianzai:"+mydd.innerHTML);
</script>
<body>
<p id="ee">java</p>
<h2>wrojfdlk</h2>
</body>
<script>
var mydd = document.getElemtenById("ee");
document.write("yiqian:"+mydd.innerHTML);
mydd.innerHTML="script";
document.write("xianzai:"+mydd.innerHTML);
</script>
2019-09-24
答案:
function openWindow(){
var flag = confirm("是否打開?");
if(flag == true)
{var myk=prompt( "請輸入網址:","http://www.xianlaiwan.cn/");
if(myk){window.open( "http://www.xianlaiwan.cn/","_blank","toolbar=no, menubar=no, width=400, height=500");}
else{alert("取消打開新窗口")}}
else{document.write("null")}}
function openWindow(){
var flag = confirm("是否打開?");
if(flag == true)
{var myk=prompt( "請輸入網址:","http://www.xianlaiwan.cn/");
if(myk){window.open( "http://www.xianlaiwan.cn/","_blank","toolbar=no, menubar=no, width=400, height=500");}
else{alert("取消打開新窗口")}}
else{document.write("null")}}
function openWindow(){
var a=confirm('新窗口是否打開')
if(a){ window.open('http://www.xianlaiwan.cn/','width=400,height=500,menubar=no,toolbar=no,status=no,scroolbars=no')
}
}
var a=confirm('新窗口是否打開')
if(a){ window.open('http://www.xianlaiwan.cn/','width=400,height=500,menubar=no,toolbar=no,status=no,scroolbars=no')
}
}
定義"取消設置"的函數function quxiao(){var set=confirm("是否恢復設置"); if(set==true) { var mychar4=document.getElementById("txt");mychar4.style.hight="400px";mychar4.style.width="600px";
mychar4.style.color="black";
mychar4.style.backgroundColor="white";
mychar4.style.display="block"}}
mychar4.style.color="black";
mychar4.style.backgroundColor="white";
mychar4.style.display="block"}}
這個「不會了」提示內容里的( 寬為600,高為400,是寫反了,寫成高為600(height=600了應該是(//height=400//這樣才對)寬也是!
2019-09-11