javascript - html5 saving clicked a href link into localstorage and redirect to same link on each visit -


first need store href url in localstorage , visitor redirected same url stored in localstorage on every visit on website until visitor clicks on link , changes link.

if visitor can change link, same process should repeat , visitor should redirected new url stored in localstorage on every visit on website until visitor can click on link , change link.

1) problem in function stored url in localstorage visitor redirected previous / old url stored in cache before selection of new link, if clicking link??

2) second problem auto refresh , reload stored link on each , every visit on website , stored link cache cloudn't delete or change when click new link old cache showing in chrome->resources->localstorage?

jsfiddle link


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -