Click to return to the Reusing Browser Technology home page    
IHTMLElement::get_lang Me...     IHTMLElement::get_offsetH...     IHTMLElement Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement::get_language Method


Retrieves the language that the current script is written in.

Syntax

HRESULT get_language(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that receives the language. It can be one of the following values:

JScript Specifies that the script is written in JScript (compatible with ECMA 262 language specification).
Jscript Specifies the language is JScript (compatible with ECMA 262 language specification).
vbs Specifies the language is Visual Basic Scripting Edition (VBScript).
vbscript Specifies that the script is written in VBScript.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLElement::put_language Method


Sets the language that the current script is written in.

Syntax

HRESULT put_language(
    BSTR v
);

Parameters

v
String that specifies the language. Can be one of the following values;

JScript Specifies that the script is written in JScript (compatible with ECMA 262 language specification).
Jscript Specifies the language is JScript (compatible with ECMA 262 language specification).
vbs Specifies the language is Visual Basic Scripting Edition (VBScript).
vbscript Specifies that the script is written in VBScript.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.