function openWindow(){
var fff = confirm("是否打开");
if(fff == true){
var url = prompt("请输入你的网址");{
if(url!= null){
window.open('http://www.imooc.com','_blank','width:600.height:400,top:100,left:0') } }
}else{
alert("你没有打开任何东西");
}}
var fff = confirm("是否打开");
if(fff == true){
var url = prompt("请输入你的网址");{
if(url!= null){
window.open('http://www.imooc.com','_blank','width:600.height:400,top:100,left:0') } }
}else{
alert("你没有打开任何东西");
}}
function openWindow(){
var my=confirm("是否打开页面:");
if(my==true)
{
window.open("http://www.imooc.com","_blank","width=400,height=500,menubar=no,toolbar=no");
}}
var my=confirm("是否打开页面:");
if(my==true)
{
window.open("http://www.imooc.com","_blank","width=400,height=500,menubar=no,toolbar=no");
}}
function openWindow(){
var mymessage=confirm("是否打开新窗口");
if(mymessage==true)
{
var score;
score = prompt("输入网址");
if(score==1){
window.open('http://www.imooc.com',
'_blank',
'width=400,height=500,menubar=no,toolbar=no') }
}
else
{
}
}
var mymessage=confirm("是否打开新窗口");
if(mymessage==true)
{
var score;
score = prompt("输入网址");
if(score==1){
window.open('http://www.imooc.com',
'_blank',
'width=400,height=500,menubar=no,toolbar=no') }
}
else
{
}
}
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" }
}