Suppose a GWT app goes to #a then #b then #a then the user presses back and I detect #b in the history.
Now I get a history event "#a". Is there any way to tell if the user pressed forward or back?
I might care because the page for #a might be a form and I might remember in memory that the second #a has some unsaved data type in the form while the first #a has not!
Thoughts?
No, that's technically not possible.
(you could use the HTML5 History API – pushState
and onpopstate
– but GWT has no built-in support)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.