I have a page which is rendered on page load, based on a local storage variable. It works fine until I navigate back to a previous page and change the storage variable, the idea being that when the page is loaded again, it will be rendered differently. The problem is that the load event doesn't fire the second time round. i am guessing that it is because the page is aleady loaded. and I could possibly fix this by unloading the page before it goes back to the previous page, thus forcing it to reload when it is navigated to again.
How do I unload a page in javascript?
Thanks,
Terry