history.pushstate vs windows.history.pushstate code example Example: history.pushstate history.pushState(state, title[, url])