是不是必须要加 http:// 才能打开网页
<script type="text/javascript">
function openWindow()
{
var chose=confirm("确定打开网页?");
if(chose==true)
{
var openwed=prompt("输入你想打开的网页:","http://www.baidu.com");
window.open(openwed,'_blank');
}
}
</script>
<script type="text/javascript">
function openWindow()
{
var chose=confirm("确定打开网页?");
if(chose==true)
{
var openwed=prompt("输入你想打开的网页:","http://www.baidu.com");
window.open(openwed,'_blank');
}
}
</script>
2016-04-13
举报