Ciao,
non riesco a visualizzare l'output su un campo label o div..span quello che sia , ma solamente con il campo input come mai?
l'esempio che segue difatti non funziona ma se altresì metto <input name="nome" value=""..ecc e chiamo document.form1.nome.value me lo visualizza ma a me non serve un campo di input
come posso risolvere?


Grazie
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it">
<head>
<script type= 'text/javascript ' language= 'JavaScript '>
<!--
var timerID = null; var timerRunning = false;
function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;}
function showtime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
		var timeValue =  ' ' + hours
        timeValue += ((minutes < 10) ?  ':0' :  ':') + minutes
        timeValue += ((seconds < 10) ?  ':0' :  ':') + seconds
        document.all.clock.innerText = timeValue;
        timerID = setTimeout( 'showtime() ',1000);
        timerRunning = true;}
		window.onload=function startclock () {
        stopclock();
        showtime();}
//-->
</script>

</head>
<body>



<div align="center">
<FORM name="form1" onsubmit=0>
<div id="clock" title=""></div>
</FORM> 
</div>
</body>
</html>