Dom Obj Script
# HTML DOM Script Object
* * *
## Script Object
The Script object represents an HTML `` element.
### Accessing the Script Object
You can use `getElementById()` to access the `` element:
```javascript
var x = document.getElementById("myScript");
(#)
### Creating a Script Object
You can use the `document.createElement()` method to create a `` element:
```javascript
var x = document.createElement("SCRIPT");
(#)
## Script Object Properties
= Property added in HTML5.
| Property | Description |
| --- | --- |
| (#) | Sets or returns whether the script should be executed asynchronously (as soon as it is available). |
| (#) | Sets or returns the value of the charset attribute of the script. |
| (#) | Sets or returns whether the script should be executed when the page has finished parsing. |
| (#) | Sets or returns the value of the src attribute of the script. |
| (#) | Sets or returns the content of all child text nodes of the script. |
| (#) | Sets or returns the value of the type attribute of the script. |
## Standard Properties and Events
The Script object also supports the standard (#) and (#).
* * *
## Related Articles
HTML Reference: [HTML `` Tag](#)
YouTip