Hi !
Guck dir mal das hier an !
<HTML>
<head>
<script>
<!--
function wait(delay){
string="pauseforalert("+delay+");";
setTimeout(string,delay);
}
function pauseforalert(delay){
alert("Ok "+delay/1000+" seconds have elapsed");
}
// -->
</script>
</HEAD>
<BODY>
<a href="javascript:void()" onClick="wait(1000);">click here and wait 1 sec</a><BR>
or<BR>
<a href="javascript:wait(2000)">click here and wait 2 secs</a><BR>
</BODY>
</HTML>