I want to store a JavaScript object in HTML5 local storage.
sessionStorage.setItem("localObj",this);
I am using the above statement within a function.The object contains HTML tags. I can neither convert it to a string nor to a JSON. How do i proceed with this?
I can neither convert it to a string nor to a JSON. Why? you can convert anHTMLElement(with it's children) to a string and convert it back when needed.