I have two html pages, NO ASPX. I use javascript like this:
To capture the value of "photos/BOP" and that works fine. I want to retrieve this value in the 2nd html page using javascript. I have my body tag set up like this:Code:sessionStorage.setItem("locale", "photos/BOP")
Here is the getImages function in the 2nd html page:HTML Code:<body onload="getImages()">
When the value is shown in the alert statement, it's NULL. What am I doing wrongCode:function getImages() { var fileextension = "jpg"; var dir = sessionStorage.getItem("locale"); alert(dir); }




Reply With Quote