rendered paste body<script> var iBeginCount = 10; var toCountdown; var btAccept; function add() { btAccept = document.createElement('input'); btAccept.setAttribute('onclick','Accept()'); btAccept.setAttribute('type','button'); btAccept.setAttribute('disabled','disabled'); btAccept.setAttribute('value','Akzeptieren (' + iBeginCount + ')'); document.getElementById('accept').appendChild(btAccept); toCountdown = setTimeout('CountdownProc(' + (iBeginCount - 1) + ')',1000); } function CountdownProc(iCurrentCount) { if (iCurrentCount == 0) { btAccept.setAttribute('disabled',''); btAccept.setAttribute('value','Akzeptieren'); clearTimeout(toCountdown); } else { btAccept.setAttribute('value','Akzeptieren (' + iCurrentCount + ')'); toCountdown = setTimeout('CountdownProc(' + (iCurrentCount - 1) + ')',1000); } } function Accept() { alert("usw..."); }</script><div id="accept"><a href="javascript:add();">das</a> | </div>