Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling server time, client side

Status
Not open for further replies.

mike3011

Programmer
Mar 27, 2012
2
0
0
US
I'm totally new to JavaScript. Is there anyway that I could pull a server time off of a website that is actually visible, with javascript. Say the server time had a specific id within the HTML. Is there anyway I could use that to pull the server time and write it to a text file?
 
Hi
[ul]
[li]Are your documents static HTML files or generated dynamically ?[/li]
[li]Do you need the server time once when the page loads or need to synchronize regularly ?[/li]
[li]By "write it to a text file" do you mean touching the visitor's local disk ?[/li]
[/ul]


Feherke.
 
I've already got the server time issue figured out with the document.GetElementById(). But the text file will be put onto my computer. MY local disk. No one elses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top