Reputation: 787
I want to determine how the user navigated to the current page he is in.
Can i determine this using javascript?
Upvotes: 0
Views: 126
Reputation: 1095
Using the window.performance.navigation.type
object you can more or less determine how the user got there and other information. More information about the object and navigation timing can be found here.
Upvotes: 3