I have a page where if you click on certain items (divs, buttons...etc) it removes other items, add some others, take data from the server with jquery $post method...etc. everything is done in jquery so the URL in the adress bar remains always the same!
I saw that some internet pages have an "undo" button, made in javascript/jquery i suppose that undo all the changes of the DOM.

in wich way is it possible?
where can i find some articles or tutorials about this?