Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLScriptElement Constructor() : HTMLScriptElement
Creates an instance of the HTMLScriptElement.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ | ||
HTMLScriptElement() : HTMLScriptElementCreates an instance of the HTMLScriptElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
src
: String
Specifies the address of the external script resource to use.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|
|||||||
|
async
: Boolean
Specifies whether the script should be run asynchronously.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|
|||||||
|
defer
: Boolean
Specifies whether the script is executed when the page has finished parsing.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|
|||||||
|
type
: String
Specifies the language of the script or format of the data.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|
|||||||
|
charset
: String
Specifies the character encoding of the external script resource.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|
|||||||
|
text
: String
Returns the contents of the element, ignoring child nodes that aren't text nodes.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 3.0+ | 2.0+ |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
References
Availability
JavaScript 1.2|WhatWG