What client-side web scripting languages are there other than JavaScript and VBScript?

前端 未结 2 1657
清酒与你
清酒与你 2020-11-30 10:03
  1. How many client-side scripting language implementations did you see except JavaScript and VBScript? Like: type=\"text/C++Script\",

相关标签:
2条回答
  • 2020-11-30 10:49
    1. Is already answered above.
    2. If you want to learn if browser supports languages that you already know the best is to embed their small snippets into page or inject using 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.
    0 讨论(0)
  • 2020-11-30 11:02

    The only languages I have ever seen supported by web browsers in <script> elements are:

    • JavaScript / JScript (which is ubiquitous)
    • VBScript (IE 10 and lower only)
    • PerlScript (IE with a plugin from ActiveState only)
    • Dart (in a nonstandard build of Chromium) which is not intended for production use.

    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.

    0 讨论(0)
提交回复
热议问题