Home / General JavaScript Tutorials / The language attribute of JavaScript

 

 

CodingForums
Having trouble with scripting? Visit our help forum to get the answers you need.

Jump to...
-Free JavaScripts
-JS tutorials
-JS Reference
-DHTML/CSS

-Free applets
-Web Tutorials
-Link to Us!

- CSS Drive
- JavaScript Menus
- PHP Resources
- Hotels & Vacations
- Java Online Casinos
- Web hosting Search


Red_CurlyC035.gif (285 bytes) Other scripting languages on the web

JavaScript has become so dominant over its short life span that many authors believe its the only scripting language on the web. Well, not quite. There exist at least two other fairly popular ones, namely, JScript, and Vbscript. Both of these languages are supported only by IE, and the easiest way to make sure that only IE browsers interpret code written in these two languages is by using the language attribute. The below demonstrates this:

<script language="VBscript">
msgBox("This text is only alerted for IE users!")
</script>

Without the language attribute, NS will choke on the above line of code.

-Tutorial introduction
-Using the language attribute of JavaScript
-Variations of the language attribute
-Using the language attribute in the real world
-Other Scripting languages on the web

.
End of Tutorial

http://javascriptkit.com
Copyright © 1997-2005 JavaScript Kit. NO PART may be reproduced without author's permission.