J
john
On index.htm, I have a basic javascript function that displays the
current times(which is refreshed every second) for Maryland, Arizona,
Germany, and the UK. Now, if someone in Arizona and someone in
Maryland both view the page at the same time, the current times will
differ, based on the client's clock (the server is located in
Maryland). I tried using the UTC javascript function, but this is
also based on the user's clock and will differ. Is there any other
way to display the server time using Javascript? (I don't really want
to use PHP, either). Or, how can I set the javascript to start at the
server time?
current times(which is refreshed every second) for Maryland, Arizona,
Germany, and the UK. Now, if someone in Arizona and someone in
Maryland both view the page at the same time, the current times will
differ, based on the client's clock (the server is located in
Maryland). I tried using the UTC javascript function, but this is
also based on the user's clock and will differ. Is there any other
way to display the server time using Javascript? (I don't really want
to use PHP, either). Or, how can I set the javascript to start at the
server time?