<script language="javascript"> // made for www.scriptkiddies.nl function DeActivate(dit){ dit.disabled=true; setTimeout("Activate('"+dit.id+"')","5000"); } function Activate(dit){ document.getElementById(dit).disabled=false; } </script> <input type="button" onclick="DeActivate(this)" id="deze" value="test">