Navigation precommit handlers
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.
Status
Limited availability
MDN documentation
Specifications
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 ❌
- Safari on iOS ❌
Baseline availability blocked since March 2026 by Safari (1 months)
Interop
- Included in Interop 2026
Developer votes
Do you need this feature?
Let us know by leaving a 👍 reaction 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