---
title: "PopStateEvent | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable PopStateEvent

PopStateEvent: {  
    prototype: [PopStateEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEvent/);  
    new (type: string, eventInitDict?: [PopStateEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEventInit/)): [PopStateEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEvent/);  
}

#### Type Declaration

-   -   new (type: string, eventInitDict?: [PopStateEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEventInit/)): [PopStateEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEvent/)
    -   #### Parameters
        
        -   type: string
        -   `Optional`eventInitDict: [PopStateEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEventInit/)
        
        #### Returns [PopStateEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEvent/)
        
-   ##### prototype: [PopStateEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.PopStateEvent/)
