Windows apps
Collapse the table of content
Expand the table of content

language attribute | language property

Sets or retrieves the language in which the current script is written.

Note  This has been superceded by the type attribute for the script element. If you are using javascript alone, you don't need to specify a type or language with the script element.

Syntax

HTML<element language="p" ... >
JavaScript

p = object.language

Property values

Type: String

JavaScript

Language is JavaScript.

javascript

Script is JavaScript.

vbs

Language is VBScript. No longer supported.

vbscript

Script is VBScript. No longer supported.

XML

Script is XML.

language

Browser-supported language.

Standards information

Remarks

The language property can refer to any scripting language.

See also

a
abbr
address
area
article
aside
b
bdo
blockQuote
body
br
button
caption
cite
code
col
colGroup
custom
dd
del
div
dl
dt
em
embed
fieldSet
figcaption
figure
footer
form
head
header
hgroup
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=file
input type=hidden
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
ins
kbd
label
legend
li
map
mark
nav
object
ol
optGroup
option
p
pre
q
rt
ruby
s
samp
section
select
small
span
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
u
ul
var

 

 

Build date: 11/14/2012

Show:
© 2016 Microsoft