how to get state from history.push code example Example: history.pushstate history.pushState(state, title[, url])