PDA

View Full Version : Button timer!



admans
07-18-2005, 08:12 AM
Put this in the head tag:



<script type="text/javascript"> function enablebutton () { document.getElementById('mybutton').disabled=false ; } </script>


on the body tag (5000 is in milliseconds so that is 5 secs):


<body onload="setTimeout('enablebutton()', 5000);">



and the button



<input type="button" id="mybutton" value="My Button" disabled="disabled" />