Ho questo js per la data e ora, però per i minuti e secondi manca lo zero. Come posso fare per inserirlo?
Grazie
<script>
function tempo(){
ora=new Date()
variab=ora.getDate()+"/"+(ora.getMonth()+1)+"/"+ora.getFullYear()+" "+ora.getHours()+":"+ora.getMinutes()+":"+ora.getS econds()
document.getElementById('livello').innerHTML=varia b
}
</script>
<body onload="tempo();setInterval('tempo()','1000')">
<div id="livello"></div>
</body>