demo · v135

Navigation source detective

Five different navigation initiators on one page — a link, a button, a form, a fragment hash change, and a programmatic navigation.navigate() call. Each triggers a NavigateEvent and the log prints event.sourceElement.tagName, event.navigationType, and the target URL so you can see exactly what the new field unlocks.

Navigation API: ? sourceElement: ?
<a href> link
hash fragment

NavigateEvent log

see also