How many client-side scripting language implementations did you see except JavaScript and VBScript? Like: type=\"text/C++Script\"
,
innerHTML
from JavaScript. These scripts should then set some global property like window['scripts']['oberon']=true;
this way you will learn that language type was detected indeed.The only languages I have ever seen supported by web browsers in <script>
elements are:
The HTML 4 specification gives examples of Tcl, but I've never heard of a browser that implemented this.
In any practical sense (for WWW development), JavaScript is the only (not really a) choice.
There are also various languages (e.g. Dart, TypeScript, ES6/7) which have translators to convert programs to (ES5 flavoured) JavaScript which can then run in browsers.