BASELINE NowYouCanUse.com
Limited Availability
id: navigation-precommit-handlers

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 and is missing in at least one major browser engine.
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