IHTMLScriptElement::type Property

Sets or retrieves the MIME type for the associated scripting engine.

Syntax


HRESULT IHTMLScriptElement::get_type(BSTR *p);HRESULT IHTMLScriptElement::put_type(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
v
BSTR that specifies one of the values listed in Possible Values.

Possible Values

text/ecmascript ECMAScript.
text/Jscript Microsoft JScript.
text/javascript Default. JScript.
text/vbs VBScript.
text/vbscript VBScript (same as text/vbs).
text/xml XML.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Compare this property with the IHTMLElement::language property. To avoid conflict, match the IHTMLScriptElement::type with the language type specified in the IHTMLElement::language property.

Community Additions

Show: