This article is Ready to Use.
|Property||Description||Used with inline scripts|
|src||The URL to an external file that contains the source code or data.||No|
|type||The MIME type for the script. Required in HTML 4, defaults to
|charset||Sets or retrieves the script's character encoding. You can't use the type attribute with this attribute.||No|
|language||The programming language for the associated scripting engine. Depracated, use type instead.||Yes|
|defer||Specifies that script should be executed after the document has been parsed.||No|
|async||Specifies that the script should be executed asynchronously, as soon as it becomes available.||No|
|crossorigin||Whether or not script error information will be revealed from the script(This is used only when scripts are being loaded from different origins).||No|
Features Chrome Firefox Internet Explorer Opera Safari Basic support async attribute defer attribute crossorigin attribute
Features Android BlackBerry Browser Firefox Mobile IE Mobile Opera Mobile Safari Mobile Basic support async attribute defer attribute
Loading an external script.
Writing an inline script.
Code within the script block that is not contained within a function is executed immediately as the document is loaded.When the Type attribute is unset on the script object, then
async="async" didn't work in some older browser, instead
async="true" was used.
|HTML 5.1||W3C Working Draft|
|HTML 5||W3C Recommendation|
|HTML 4.01||W3C Recommendation|
Related pages (MSDN)
XML Data Islands
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]