The script element is used to embed or reference an executable script within an HTML or XHTML document.
document.write() from an async script. In Gecko 1.9.2, calling document.write() has an unpredictable effect. In future versions, calling document.write() from an async script is expected to replace the entire document. The async attribute should only be used together with the src attribute, and is ignored if the src attribute isn't present.srcscript elements with an src attribute specified should not have a script embedded within its tags.typescript element or referenced via the element’s src attribute. This is specified as a MIME type; examples of supported MIME types include text/javascript, text/ecmascript, application/javascript, and application/ecmascript. If this attribute is absent, the script is treated as JavaScript.language
Deprecatedtype attribute, this attribute identifies the scripting language in use. Unlike the type attribute, however, this attribute’s possible values were never standardized. The type attribute should be used instead.defer
Requires Gecko 1.9.1document.write() from a defer script (since Gecko 1.9.2, this will blow away the document). The defer attribute shouldn't be used on scripts that don't have the src attribute. Since Gecko 1.9.2, the defer attribute is ignored on scripts that don't have the src attribute. However, in Gecko 1.9.1 even inline scripts are deferred if the defer attribute is set.Page last modified 10:50, 19 Nov 2009 by HelderMagalhaes