Help with saving

Im making a game for a website, so i need somone to please tell me how, or give me a tutorial on how to make a button or something to where you can save where you are on the game, or how to make it autosave.