addHandler

open external fun addHandler(handler: NavigationInterceptHandler)(source)

The addHandler() method of the NavigationPrecommitController interface allows you to dynamically add a handler callback function in precommit code, which will then be run after the navigation has committed.

MDN Reference