I am trying to figure out some way to get actual time via JavaScript, jQuery, JSON, etc…
I’ve got these two sites that host the time for exactly that purpose
and this site that actualy explains how to get the time but i cant seem to figure it out, since i dont really know json, only javascript.
I’ve searched a lot but couldn’t figure out how to extract data from another website using JavaScript.
if someone could help me get the time from one of these sites into a variable in JavaScriptthat would be great.thanks.
You can run this right in the console if you’re using chrome or firefox:
You’ll see that x now contains the json time object.
Hope this helps.