Web server address - 235Chapter 15Generic HTML Element ObjectslangValue:ISO language code string.Read/Write
235Chapter 15Generic HTML Element ObjectslangValue:ISO language code string.Read/Write Compatibility:WinIE4+, MacIE4+, NN6+, Moz1+, Safari1+ The langproperty governs the written language system used to render an element s text con- tent when overriding the default browser s language system. The default value for this prop- erty is an empty string unless the corresponding langattribute is assigned a value in theelement s tag. Modifying the property value by script control does not appear to have anyeffect in the current browser implementations. ExampleValues for the langproperty consist of strings containing valid ISO language codes. Suchcodes have, at the minimum, a primary language code (for example, fr for French) plus anoptional region specifier (for example, fr-ch for Swiss French). The code to assign a SwissGerman value to an element looks like the following: document.getElementById( specialSpan ).lang = de-ch ; languageValue:String.Read/Write Compatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari- IE4+ s architecture allows for multiple scripting engines to work with the browser. Twoengines are included with the basic Windows version browser: JScript (compatible withJavaScript) and Visual Basic Scripting Edition (VBScript). The default scripting engine isJScript. But if you wish to use VBScript or some other scripting language in statements thatare embedded within event handler attributes of a tag, you can specifically direct the browserto apply the desired scripting engine to those script statements by way of the languageattribute of the tag. The languageproperty provides scripted access to that property. Unlessyou intend to modify the event handler HTML code and replace it with a statement inVBScript (or any other non-JScript-compatible language installed with your browser), you donot need to modify this property (or read it, for that matter). Valid values include JScript, javascript, vbscript, and vbs. Third-party scripting engineshave their own identifier for use with this value. Because the languageattribute was alsoused in the