Chartbreaker
    Preparing search index...

    Interface NavigationPrecommitController

    The NavigationPrecommitController interface of the Navigation API is passed as an argument to a navigation precommit handler callback.

    MDN Reference

    interface NavigationPrecommitController {
        addHandler(handler: NavigationInterceptHandler): void;
        redirect(url: string | URL, options?: NavigationNavigateOptions): void;
    }
    Index

    Methods

    • 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

      Parameters

      Returns void