1、在页面<body></body>间插入:
<iframe id="download" name="download" height="0px" width="0px"></iframe>
2、在<head></head>标签中插入<base target="download">,target指向iframe 的ID,点击下载(超链接)时,正常弹出提示框。
window.showModalDialog弹出框下载附件
猜你喜欢
转载自huangshanghua.iteye.com/blog/2281065
今日推荐
周排行