InterviewSolution
Saved Bookmarks
| 1. |
How many parameters does the replaceState() method take?(a) 2(b) 3(c) 4(d) 5 |
|
Answer» Correct answer is (b) 3 Best explanation: The replaceState() updates the most recent entry on the history stack to have the specified data, title, and, if provided, URL. window.history.replaceState(stateObj, title, url) : This is just like window.history.pushState, except that the current browser state is removed from the history, so you cannot hit “back” to return to it. |
|