In my asp.net web application I need to capture the Client time and store it in a DB.For this I have written the follwing script in the head of my master:{ \[code\]function checkClientTimeZone() { // Set the client time zone var dt = new Date(); alert(dt.toTimeString()); document.getElementById("HiddenField1").value = http://stackoverflow.com/questions/12658629/dt.toTimeString();}window.onload = checkClientTimeZone;</script>\[/code\]}Where the hidden field has been declared on the master pageOn every page load the script runs well and alerts the time of the client . But when I refer the value of the hidden fild in the content page it stills reflects 'Hi' which is the default value. Could someone please help ..