this might bit general but, i'm wondering js variables stored? , kept when click new pages or every time data reset?
they reset every time refresh.
there multiple ways persist them between reloads. e.g.
- webstorage http://en.wikipedia.org/wiki/web_storage
- cookies
- you save them database , load them session. render server side.
for of these methods need persist these (generally due user interaction) , load these on page reload etc. not happen automatically, have explicitly so.
Comments
Post a Comment