By default, the scripting language is assumed to be Java. However, you can select different language by specifying the language attribute as follows. The language attribute is case insensitive.
<zscript language="javascript"> alert('Say Hi in JavaScript'); new Label("Hi, JavaScript!").setParent(win); </zscript>
To specify the scripting language for an event handler, you can prefix with, say, javascript: as follows. Notice: don't put whitespace before or after the language name.
<button onClick="javascript: do_something_in_js();"/>
You may have the script codes writing in different scripting languages in the same page.