function openWindow(){
var myck=confirm("是否打开?");
if(myck ==true)
{
var myck = prompt("请输入网址:","http://www.imooc.com/");
应该是这样了
window.open('http://www.imooc.com/','width=400','height=500','menubar=no','toolbar=no')
}
var myck=confirm("是否打开?");
if(myck ==true)
{
var myck = prompt("请输入网址:","http://www.imooc.com/");
应该是这样了
window.open('http://www.imooc.com/','width=400','height=500','menubar=no','toolbar=no')
}
新窗口是否打开immoc
function openWindow(){
var newpage=confirm("是否打开")
if(newpage==true)
{
window.open('http://imooc.com','width=400,height=500,menubar=no,toolbar=no');
}
else{
alert("无法回应")
}
}
</script>
function openWindow(){
var newpage=confirm("是否打开")
if(newpage==true)
{
window.open('http://imooc.com','width=400,height=500,menubar=no,toolbar=no');
}
else{
alert("无法回应")
}
}
</script>
function rec(){
while(true){
var mychar="吃了炫迈";
var myChar="根本停不下来";
alert(mychar);
alert(myChar);
}
}rec();
while(true){
var mychar="吃了炫迈";
var myChar="根本停不下来";
alert(mychar);
alert(myChar);
}
}rec();
2019-10-27
<script type="text/javascript">
var mychar=document.getElementById("con");
document.write("原标题:"+mychar.innerHTML+"<br>"); //输出原h2标签内容
mychar.innerHTML="Hello world!";
document.write("修改后的标题:"+mychar.innerHTML); //输出修改后h2标签内容
</script>
var mychar=document.getElementById("con");
document.write("原标题:"+mychar.innerHTML+"<br>"); //输出原h2标签内容
mychar.innerHTML="Hello world!";
document.write("修改后的标题:"+mychar.innerHTML); //输出修改后h2标签内容
</script>
2019-10-18
function openWindow()
var mymessage = confirm('是否打开网页');
if (mymessage == true){
window.open('http://www.imooc.com','_blank','width=400,height=500,toolbar=no,menubar=no')
};
var mymessage = confirm('是否打开网页');
if (mymessage == true){
window.open('http://www.imooc.com','_blank','width=400,height=500,toolbar=no,menubar=no')
};
function openWindow(){
var message=confirm("是否确认打开页面");
if(message==true{
var h=prompt("请输入你的网址","http://www.imooc.com/") window,open(h,'_blank','width=400,height=500,toolbar=no,menubar=no')}
else
{
alert("goodbye" }
}
var message=confirm("是否确认打开页面");
if(message==true{
var h=prompt("请输入你的网址","http://www.imooc.com/") window,open(h,'_blank','width=400,height=500,toolbar=no,menubar=no')}
else
{
alert("goodbye" }
}
<script type="text/javascript">
function openWindow()
{var a=confirm("FBI Warning");
if(a==true)
{
var b=prompt("确定???","http://www.imooc.com/")
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.imooc.com/")
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.imooc.com','_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.imooc.com/");
if(mywin)
{
window.open(mywin,'width = 400','height = 500','menubar = no','toolbar = no');
}
}
}
var openStr = confirm("是否打开新窗口");
if(openStr == true)
{
var mywin = prompt("请输入网址:","http://www.imooc.com/");
if(mywin)
{
window.open(mywin,'width = 400','height = 500','menubar = no','toolbar = no');
}
}
}