In HTML5 will Undo implementation !
But, nevertheless, as Pekka said, your application must keep track of what is being done to “cancel” it. One technical solution is to save changes to the document or data. Therefore, when the user wants to cancel something, the previous version is downloaded .
source
share