Q17
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()
AnswerB.
replace(state)
C.
replace()
D.
none of the mentioned
Answer: Option A
Solution
Answer: Option A
Solution:
The replaceState() method is used to replace the current history state instead of adding a new state to the browsing history.