bengaltgrs Posted December 1, 2006 Share Posted December 1, 2006 I have a javascript timer going on a page and I want the time to be saved if the page is refreshed. The way it is setup now, the timer is reset when the page is refreshed. I'm not sure if this is something I should use PHP or javascript for. Would I have to save it to a file and reload it or can I just pass it between the page? Quote Link to comment Share on other sites More sharing options...
fert Posted December 1, 2006 Share Posted December 1, 2006 to pass the data between pages you will need to submit the form Quote Link to comment Share on other sites More sharing options...
marcus Posted December 1, 2006 Share Posted December 1, 2006 No you do not.He wants the time to be saved one the time the page is refreshed. Quote Link to comment Share on other sites More sharing options...
bengaltgrs Posted December 1, 2006 Author Share Posted December 1, 2006 I tried submitting the form when the onUnload event was triggered but that didnt seem to work. Which was odd because if I called the alert function when the onUnload even was triggered, it would go off when I refreshed the page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.