Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     2

    B.

     3

    C.

     4

    D.

     5

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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.


Be The First To Comment