having a problem using localstorage in javascript. I have two javascript files and one multi-page html file. I\'m setting the value of a variable to store in local storage
This shouldn't be working at all. Its localStorage (JS is very case sensitive), and to save an item, you use setItem, change your syntax to:
//You would not define var _NSCaseId and save the var, you save a string key
localStorage.setItem('_NSCaseId', nsId); //set
And to get
localStorage.getItem('_NSCaseId');
See DOM Storage: https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage