javascript - Need an alert on first log in -


i have requirement show alert box when user logs in first time.

i used localstorage method below:

var visited = localstorage.getitem('visited');  if (!visited) {     alert("please view firefox" + visited); } 

however, seems working, doesnot work on every login, works when page visited first time.

please let me know if there way it. please note, using javascript functionality done.

thanks, ark


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 -