August 1999
Intermediate to advanced
1488 pages
72h 53m
English
navigator.language
The language property of the navigator object is used to determine what language the browser supports. The return value is a string.
Listing 7.400 shows an example of how the language property is used.
<html>
<head>
<title> Example of the language property of the navigator object</title>
</head>
<body>
<script language="JavaScript">
<!--Hide
// output the navigator language property
document.write(navigator.language);
// End Hide --->
</script>
</body>
</html>
|
Read now
Unlock full access