browser local storage api code example Example: javascript localstorage var KeyName = window.localStorage.key(index);