开发者

How can I create an HTA that enable close button after certain time period(15 sec)?

How can I create an HTA that enable close button after certain ti开发者_运维技巧me period(15 sec)?

Thank in advance.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜