ExamVeda
Login
Home
This question belongs to Javascript Sockets
Sockets
?

What is the purpose of the event window.onpopstate?

Answer & Solution
Correct Answer: Option C
The window.onpopstate event is fired whenever a state object is removed from the browser history, which occurs on browser “back” or “forward”. State objects are persisted on the user’s hard disk between sessions, which is a nice feature. The object passed into a call to pushState or replaceState is provided as the state property on the event object in the “popstate” event.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.