Браузер |
Internet Explorer |
Chrome |
Opera |
Safari |
Firefox |
|||||||||||||||
Версия |
6.0 |
7.0 |
8.0 |
9.0 |
2.0 |
3.0 |
4.0 |
5.0 |
9.2 |
9.6 |
10 |
2.0 |
3.1 |
4.0 |
5.0 |
2.0 |
3.0 |
3.6 |
4.0 |
|
Поддержка |
HTML: | 3.2 | 4.01 | 5.0 |
XHTML: | 1.0 | 1.1 |
<script
language="JavaScript | JScript | VBS | VBScript">...</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Тег SCRIPT, параметр language</title>
<script type="text/vbscript" language="VBScript"> VB = 1 </script>
<script type="text/javascript" language="JavaScript"> JS = 1; </script>
<script type="text/javascript" language="JavaScript1.1"> JS11 = 1; </script>
<script type="text/javascript" language="JavaScript1.2"> JS12 = 1; </script>
<script type="text/javascript" language="JavaScript1.3"> JS13 = 1; </script>
<script type="text/javascript" language="JavaScript1.4"> JS14 = 1; </script>
<script type="text/javascript" language="JavaScript1.5"> JS15 = 1; </script>
<script type="text/javascript" language="JavaScript">
document.write("<b>Поддерживаемые языки:<\/b><br>");
if(window.JS) document.write("JavaScript<br>");
if(window.JS11) document.write("JavaScript 1.1<br>");
if(window.JS12) document.write("JavaScript 1.2<br>");
if(window.JS13) document.write("JavaScript 1.3<br>");
if(window.JS14) document.write("JavaScript 1.4<br>");
if(window.JS15) document.write("JavaScript 1.5<br>");
if(window.VB) document.write("Visual Basic<br>");
</script>
</head>
<body>
</body>
</html>