Hi,
I am trying to disable the 'start' button after i click on 'start' button. Its not working.
Please help.
<html>
<SCRIPT language="JavaScript">
<!--hide
function newtext()
{
document.myform.mytext.disabled = true;
setTimeout("moretext()",9000);
}
function moretext()
{
document.myform.one.disabled = true;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM name="myform" method="post" action="sessionS1.php">
<table width='600' cellpadding='5' cellspacing='5' border='1'>
<tr><td colspan=6 align='right'><INPUT class = "button" TYPE="button" name= "mytext" value="start " onClick="newtext()"></td></tr>
<tr> <td> 2 * 4 </td> <td> <input type = 'text' size = '2' name = one > </td> </tr>
<tr><td colspan=6 align='right'><input type='submit' value='Score' name='btn_score'></td></tr>
</table>
</FORM>
</body>
</html>