> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/mapbox-search-js/ja/llms.txt)

# Events and event types

`MapboxAddressAutofill`, `MapboxSearchBox`, and other Search JS Web classes emit events in response to changes in state. These all implement the browser [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) interface, commonly known for `addEventListener`.

You can learn more about the originating events here:

-   [`MapboxAddressAutofill` events](https://docs.mapbox.com/mapbox-search-js/ja/api/web/autofill/#mapboxaddressautofill-events)
-   [`AddressAutofillCollection` events](https://docs.mapbox.com/mapbox-search-js/ja/api/web/autofill/#addressautofillcollection-events)
-   [`MapboxSearchBox` events](https://docs.mapbox.com/mapbox-search-js/ja/api/web/search/#mapboxsearchbox-events)