I have an simple html document that should load the javascript again in intervall of 1000
so at the end of the document i added:
<script>
window.onload = function() {
refreshTime(); }
</script>
This functions is defined in the js document and goes like this:
function refreshTime() {
var a = new Date(); // Now
var ahours = a.getHours();
........
and ends with:
}
refreshTime();
setInterval(refreshTime, 1000);
so that the refreshTime() is out of the function refresh Time() because of the } If you understand what i mean?
So my problem is that this interval does not function, do i have to set the Interval in the Html document? Or at another place?