adplus-dvertising
frame-decoration

Question

Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?

a.

replaceState()

b.

replace(state)

c.

replace()

d.

none of the mentioned

Posted under JavaScript

Answer: (a).replaceState()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?