1.

How many parameters does the replaceState() method take?(a) 2(b) 3(c) 4(d) 5The question was asked in final exam.Question is taken from History Management in JavaScript in chapter Sockets of JavaScript

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.



Discussion

No Comment Found

Related InterviewSolutions