VBA: Read localstorage variable from Internet Explorer Object using temporary textfield

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

Here is a toy solution to access localstorage variables if they are not accessible directly.

Imagine we have test HTML webpage with HTML:

<html>
<body>
<script>
// Put the object into storage
localStorage.setItem('testObject', 'testString');

// Retrieve the object from storage
var retrievedObject = localStorage.getItem('testObject');
</script>
</body>
</html>