The capx is not working like the online demo. I'm guessing that the browser does not like to load the hashtags if it from a local computer instead of it being on the internet.
I think I have found another solution:
Have the html call
"<script>
localStorage.setItem("MySavedKey", "MyVariable");
"</script>
create a plugin that have a Expression
and return the string of:
localStorage.getItem("MySavedKey")
the expression will return "MyVariable"
I have not combine it with this html code
<button onclick="myFunction()">Click me</button>
<script>
function myFunction() {
localStorage.setItem("MySavedKey", "MyVariable");
}
</script>
I haven't tested it yet. It going to take me sometime within the next week to test it.