Skip to content Skip to sidebar Skip to footer

Storing The Window Object In Local Storage

I need the ability to persist the window object. I tried to stringify the window object but I received and error when trying to convert the window object to JSON. 'Converting circ

Solution 1:

You can't persist a window object in local storage.

You can only store data in the form of strings in local storage, and there is no way to turn the window object into a string so that you can recreate the same window object.

Post a Comment for "Storing The Window Object In Local Storage"