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
function openWindow(){var opennew = confirm("确定打开点击确定!")
if(opennew==true){ var open;open = prompt("请输入你要打开的网址","");if(open=="www.imooc.com"){window.open('http://www.imooc.com','_blank','width=400,height=600,menubar=no,toolbar=no');}else{ return openWindow();}}else{document.write("请继续浏览!")
if(opennew==true){ var open;open = prompt("请输入你要打开的网址","");if(open=="www.imooc.com"){window.open('http://www.imooc.com','_blank','width=400,height=600,menubar=no,toolbar=no');}else{ return openWindow();}}else{document.write("请继续浏览!")
function Wopen(){
window.open("http://www.imooc.com","_blank","width=600,height=600,top=100,left=0")
}
window.open("http://www.imooc.com","_blank","width=600,height=600,top=100,left=0")
}
2016-04-24
<script type="text/javascript">
function openWindow()
{
var open=confirm("是否打开新窗口");
if(open==ture)
{
window.open("http://localhost:63342/JD/HTML/LoginUI.html","_bank","width=400,height=500,menbar=no,toolbar=no");
}
}
</script>
function openWindow()
{
var open=confirm("是否打开新窗口");
if(open==ture)
{
window.open("http://localhost:63342/JD/HTML/LoginUI.html","_bank","width=400,height=500,menbar=no,toolbar=no");
}
}
</script>