InnerText USES an example
- 2020-03-30 01:25:52
- OfStack
<html>
<head>
<script language = "javascript" type = "text/javascript">
function showTime(){
//The text between the elements is through the object. InnerText
document.getElementById("mytime").innerText = new Date().toLocaleString();
}
setInterval("showTime()",1000);
</script>
</head>
<body>
<span id = "mytime"></span>
</body>
</html>