Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> // added formatting options to JSON.stringify to make the object look nicer alert(JSON.stringify(localStorage, null, 2)); </script> </body> </html>