html5 saving clicked a href link into localstorage and redirectto same link on each visit
First need to store a href url in localstorage and visitor areto be redirected to same url which is stored in localstorage onevery visit on website until visitor clicks on another link andchanges the link.
If visitor can change link, the same process should repeat andvisitor should be redirected to the new url which is stored inlocalstorage on every visit on website until visitor can click onanother link and change link.
Answer
Each time when the page is loaded, the cache must be clearedsince the redirections will
OR
OR