BASELINE NowYouCanUse.com
Limited Availability

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.
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Mar 13, 2026.
Desktop Browser Engine Support
Google Chrome
146
Supported
Mozilla Firefox
148
Supported
Apple Safari
—
Unsupported
Microsoft Edge
146
Supported
Mobile Browser Engine Support
Chrome Android
146
Firefox Android
148
Safari iOS
—
Specifications and References
id: navigation-precommit-handlers