<html> <head> <title>Часики с кнопкой.</title> <script language="JavaScript"> <!-- function myclock() { datastr = new Date(); document.clockexam.clock.value = " "+datastr; setTimeout("myclock()", 1000); } --> </script> </head> <body> <form name="clockexam"> <input type="text" size="35" name="clock"> <input type=button value="Start" onClick="myclock();"> </body> </html>
|