<script type="text/javascript">
window.onload = function(){
document.getElementById('a').onclick = function(i) {
return function() {
document.body.innerHTML = --i > 0 ? i : 'Oops!';
window.setTimeout(arguments.callee, 1000);
return false;
};
}(60);
};
</script>
<a href="#" id="a">click</a>