Javascript Reference
Categories: OBJECT

javascript OBJECT Lang

@March 15, 2008, 1:22 a.m.
langFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Indicates the written language being used for the element's attribute and property values. Other applications and search engines might use this information to aid selection of spellchecking dictionaries and creating indices.

 
Example
 
document.getElementById("elementID").lang = "de";
 
Value

Case-insensitive language code.

 
Default

Browser default.


Powered by Linode.