V
V
Viper2282015-10-03 10:35:12
PHP
Viper228, 2015-10-03 10:35:12

How to save actions on page refresh?

Look, for example, I have a function to change the background of the site when I click on the button! And I need this function to remain when the page is updated! that is, when you refresh the page, the last actions remained unchanged! (I hope I explained clearly)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2015-10-03
@Ivanq

You can save values ​​either to the server or to localStorage
P.S. It is also possible in cookies, but it will not be convenient to store.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question