最新回答 / 呆子012
function openWindow() { var flag=confirm("确认打开新窗口吗?"); if(flag==true) { var myUrl=prompt("新网站地址是:","http://www.imooc.com"); window.open(myUrl,"_blank","width=400,height=500,toolar=no,menubar=no") } else...
2015-05-09
function openWindow()
{var open=confirm("是否打开");
if(open==true)
{var web=prompt("请输入网址","http://www.imooc.com/");
if(web!=null) {window.open(web,'_blank','width=400,height=500,menubar=no,toolbar=no')}
else
{return;}
}
else
{return;}
}
{var open=confirm("是否打开");
if(open==true)
{var web=prompt("请输入网址","http://www.imooc.com/");
if(web!=null) {window.open(web,'_blank','width=400,height=500,menubar=no,toolbar=no')}
else
{return;}
}
else
{return;}
}
function openWindow()
{
var openweb;
openweb=confirm("是否打开");
if(openweb==true)
{
var web;
web=prompt("请输入网址",'http://www.imooc.com/');
if(web!=null)
{window.open(web,'_blank','width=400,height=500,menubar=no,toolbar=no')}
}
else
}
else
{
var openweb;
openweb=confirm("是否打开");
if(openweb==true)
{
var web;
web=prompt("请输入网址",'http://www.imooc.com/');
if(web!=null)
{window.open(web,'_blank','width=400,height=500,menubar=no,toolbar=no')}
}
else
}
else
最新回答 / Java追随者
首先判断输入框内容不为空可以这样写 if(sureopen!="") ,然后window.open这个的参数中的width,height,还有一些滚动条,菜单栏都是放在一个字符串里的,写成一个参数比如这样"width=100,height=10" 还有一点就是这些都是不带px的
2015-05-08
已采纳回答 / Perona
翻了一下你代码。32行:<input onclick"removest()" type="button" value="取消设置" >差了个=,加上=就好了。<...code...>
2015-05-08
<script type="text/javascript">
document.getElementById("con").style.color="red";
document.getElementById("con").style.backgroundColor="#ccc";
document.getElementById("con").style.width="300px";
document.getElementById("con").style.color="red";
document.getElementById("con").style.backgroundColor="#ccc";
document.getElementById("con").style.width="300px";
2015-05-08