Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     replaceState()

    B.

     replace(state)

    C.

     replace()

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The replaceState() method is used to replace the current history state instead of adding a new state to the browsing history.


Be The First To Comment