Help me !

Here the Code :
HTML Code:
<script type="text/javascript">
var jetzt = new Date();
var Std = jetzt.getHours();
if (Std >= 6 && Std < 23) {
 window.location.reload()

}
</script>
How can i repeat the Code without reloading the Page ?

I have no idea about JavaScript