html - How to record user actions and then re-execute them in JavaScript? -


I have a web page (all the client-side code) where the user has some The page elements can add dynamic. / P>

For example, they can click the button called "Add Group" and input a group name. This is a & lt; div class = "customGroup" & gt; , which will show the group as "title" among some other buttons, which they have created in the newly created & lt; Div & gt; .

What do I want to be able to store a user and if they are something close & amp; Open the window again or reload the page For example, if they add a group "foo" and refresh the page, then the page is all html / javascript, "fu" is lost.

Is there any way that I can record their actions using them again by using caching / cookies? Or do I need to do it any other way? Is this also possible?

To open and close this data around,

you You can see what the user clicks by adding the elements you do. The functions you have been able to put in the context of clicked items can be put in an array. Then you can click on them when you want to use.

In the form of text for users to login when the data is submitted, make sure it is in the form of a string in local storage. On page load, you can keep this data wherever you want, then give it elements to internal HTML and voice, you can recreate the page state.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -