这个意思?
<script>
function download(){
var t=document.getElementById('txtFileUrl');
if(t.value==''){alert('清输入文件路径!');t.focus();return}
windown.open(t.value)
}
</script>
<input type="text" id="txtFileUrl"/><input type="button" value="下载" onclick="download()"/>
<script>
function download(){
var t=document.getElementById('txtFileUrl');
if(t.value==''){alert('清输入文件路径!');t.focus();return}
windown.open(t.value)
}
</script>
<input type="text" id="txtFileUrl"/><input type="button" value="下载" onclick="download()"/>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货