JS点击下载完毕后取消遮罩层
时间:2014-02-28 22:36:31
收藏:0
阅读:791
<html> <head> <script> var w; var timer; function win(obj) { obj.disabled=true; w = window.open(‘xjpwb五笔.zip‘,"","toolbar=no, location=no, directories=no, status=no, menubar=no"); timer = window.setInterval(‘ifWinClosed()‘,800); } function ifWinClosed(){ if(w.closed == true){ document.getElementById("click").disabled = false; window.clearInterval(timer); } } </script> </head> <body> <input type="button" name="click" value="click" id="click" onclick="win(this);" /> </body> </html>
原文:http://blog.csdn.net/paulmin/article/details/20080089
评论(0)