Navigation precommit handlers
Limited availability
The precommitHandler callback option to NavigateEvent's intercept() method returns a promise that defers navigation until the promise resolves. You can use this to change the navigation's URL, state, and history before navigation occurs.
Browser support
- Chrome 146 Released on 2026-03-10
- Chrome Android 146 Released on 2026-03-10
- Edge 146 Released on 2026-03-13
- Firefox 148 Released on 2026-02-24
- Firefox for Android 148 Released on 2026-02-24
- Safari Not supported
- Safari on iOS Not supported
Baseline availability blocked since March 2026 by Safari (4 months)
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist