how do i distinguish between refresh and first load in JavaScript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pravindongare
    New Member
    • Jul 2012
    • 1

    how do i distinguish between refresh and first load in JavaScript?

    you know IsPostBack is used in server side to check refresh

    how can i do in javascript
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you might use different solutions - like a cookie or the HTML5 local storage to set a flag or such to maintain a state that you can query from a script.

    Comment

    Working...