navigator.language
言語名を返します。日本語の場合はjpの文字が含まれます。返される文字列はブラウザにより異なるので注意が必要です。
構文
navigator.language
例文
<html> <head> <title>navigator.language</title> <script type="text/javascript"><!-- window.onload = function() { var txt = navigator.language; document.getElementById("result").innerHTML = txt; } // --></script> </head> <body> <div id="result"></div> </body> </html>
関連記事
- navigator.vendorSub
- navigator.vendor
- navigator.userProfile
- navigator.userLanguage
- navigator.userAgent
- navigator.taintEnabled
- navigator.systemLanguage
- navigator.securityPolicy
- navigator.productSub
- navigator.product
- navigator.preference
- navigator.platform
- navigator.oscpu
- navigator.opsProfile
- navigator.onLine
- navigator.javaEnabled
- navigator.cpuClass
- navigator.cookieEnabled
- navigator.browserLanguage
- navigator.appVersion
- navigator.appName
- navigator.appMinorVersion
- navigator.appCodeName
スポンサーリンク