autosave AutoSave in Visualforce + Calling an Apex Function from Javascript 4:31 PM I had a couple of Visualforce Page forms. Each form had multiple input boxes for the user to input information. I had a save button at the top and bottom of the page. But still, sometimes the user might accidentally close or navigate to some other page. Auto Saving the page in regular intervals was so nice to have. To do this we will use with a mix of Javascript and Apex. Create a Visualforce Page with the code below. Create an Apex Class with the code as given below.