最新回答 / 1916628802
js放在body标签最后var col=getElementById("txt") —— 改成 var col=document.getElementById("txt")
2016-04-25
function openWindow(){
var open=window.open('http://www.imooc.com','_black','width=400','height=500','toolbar=no','menubar=no');
var opennew = confirm("确定打开点击确定!");
if(opennew==true){
prompt('请输入网址','http://www.imooc.com/')
}else{}; }
var open=window.open('http://www.imooc.com','_black','width=400','height=500','toolbar=no','menubar=no');
var opennew = confirm("确定打开点击确定!");
if(opennew==true){
prompt('请输入网址','http://www.imooc.com/')
}else{}; }
var a=document.getElementById('txt')
a.style.color="white";
a.style.backgroundColor="red"
a.style.width="300px";
a.style.height="400px"
a.style.display="none";
a.style.display="block";
function a5(){
var b=confirm('确定重设吗?');
if(b==true){
a.removeAttribute('style');
}
else{
none;
}
}
a.style.color="white";
a.style.backgroundColor="red"
a.style.width="300px";
a.style.height="400px"
a.style.display="none";
a.style.display="block";
function a5(){
var b=confirm('确定重设吗?');
if(b==true){
a.removeAttribute('style');
}
else{
none;
}
}
最赞回答 / 0若兮她老娘0
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>window.open</title><script type="text/javascript">function Wopen(){ if(confirm("是否打开新窗口?")){ var myint=...
2016-04-24