HTMLScriptElement: The script Element
The script element is represented by the HTMLScriptElement object. HTMLScriptElement object defines the additional properties described in the following table.
Name | Description | Returns |
---|---|---|
src | Corresponds to the src attribute | string |
async | Corresponds to the async attribute | boolean |
defer | Corresponds to the defer attribute | boolean |
type | Corresponds to the type attribute | string |
charset | Corresponds to the charset attribute | string |
text | Corresponds to the text attribute | string |