JS点击下载完毕后取消遮罩层

<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>

JS点击下载完毕后取消遮罩层,布布扣,bubuko.com

JS点击下载完毕后取消遮罩层

上一篇:构造器和类的继承


下一篇:Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine)) (CF1561D1 & D2 Up the Strip)