如何在特定时间段(15秒)后创建启用关闭按钮的HTA?
提前感谢。
答案 0 :(得分:1)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Enable close button after 15 sec</title>
<script type="text/javascript">
window.onload = function(){
setTimeout(function(){
document.getElementById('close-button').style.display = 'inline';
}, 15000);
}
</script>
</head>
<body>
<input type="button" value="Close" name="close-button" id="close-button" style="display:none;" />
</body>
</html>