---
title: "HTMLScriptElement | 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 HTMLScriptElement

HTMLScriptElement: {  
    prototype: [HTMLScriptElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLScriptElement/);  
    supports(type: string): boolean;  
    new (): [HTMLScriptElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLScriptElement/);  
}

#### Type Declaration

-   -   new (): [HTMLScriptElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLScriptElement/)
    -   #### Returns [HTMLScriptElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLScriptElement/)
        
-   ##### prototype: [HTMLScriptElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLScriptElement/)
    
-   ##### supports: function
    
    -   supports(type: string): boolean[](#supports-1)
        
        The **`supports()`** static method of the HTMLScriptElement interface provides a simple and consistent method to feature-detect what types of scripts are supported by the user agent.
        
        [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static)
        
        #### Parameters
        
        -   type: string
        
        #### Returns boolean
