history.pushState or history.push("7") code example Example: history.pushstate history.pushState(state, title[, url])