M

Mr. Dubey • 52.43K Points
Coach

Q. How many parameters does the replaceState() method take?

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5
  • Correct Answer - Option(B)
  • Views: 50
  • Filed under category JavaScript

Explanation by: Mr. Dubey
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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics