you know IsPostBack is used in server side to check refresh

how can i do in javascript