<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
.html下载本地
通过javascript 实现
index.html
<a href=# οnclick="window.open('temp.html');return(false);">下载文件</a>
#######
temp.html //被下载文件
<Script language="javascript">
if (typeof(window.opener) != 'undefined') //判断 打开方式的下载。 去掉会一打开文件就弹出下载框
{
document.execCommand('SaveAs');
window.close();
}
</Script>
################
<button οnclick="javascript:document.execCommand('SaveAs');">保存本页面</button>