借花献佛:<script language="javascript">
function SaveAs(href,name)
{
var a = window.open(href)
a.document.execCommand('Saveas',true,name)
a.window.close()
return false
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>实验</title>
</head><body>
<a href="1.jpg" onClick="return SaveAs(this.href,'1.jpg')">下载</a>
</body>
</html>
function SaveAs(href,name)
{
var a = window.open(href)
a.document.execCommand('Saveas',true,name)
a.window.close()
return false
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>实验</title>
</head><body>
<a href="1.jpg" onClick="return SaveAs(this.href,'1.jpg')">下载</a>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货