Hi mates..
I used this code:
<script type="text/javascript" src="my.js"></script>
but I'm stuck now, how to use it in my "html" page? I meant the code inside the "my.js" it is not executing when I reload the page!
What should I do?
Thanks
btw this is the code inside "my.js"
<script type="text/javascript">
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes() + 1;
var seconds = time.getSeconds() + 1;
document.write( hours + ":" + minutes + ":" + seconds );
</script>
I used this code:
<script type="text/javascript" src="my.js"></script>
but I'm stuck now, how to use it in my "html" page? I meant the code inside the "my.js" it is not executing when I reload the page!
What should I do?
Thanks
btw this is the code inside "my.js"
<script type="text/javascript">
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes() + 1;
var seconds = time.getSeconds() + 1;
document.write( hours + ":" + minutes + ":" + seconds );
</script>