PrepAway - Latest Free Exam Questions & Answers

Which statement can a developer apply to increment the browser’s navigation history without a page refresh?

Which statement can a developer apply to increment the browser’s navigation history without a page refresh?

A. window.history.pushState(newStateObject);

B. window.history.pushState(newStateObject, ‘’, null);

C. window.history.state.push(newStateObject);

D. window.history.replaceState(newStateObject, ‘’, null);

Reference: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState


Leave a Reply