JavaScript can also be used out of web pages in an HTML Application (HTA). In an HTA, it is possible to use a mix of VBScript and JavaScript. When you use scripting in your application, like in the following, the scripting language is automatically set to VBScript.
So an element with a JavaScript onclick event, like in the following, will result in an error.
Click me!
You can solve this by explicitly set the language to JavaScript by
Click me for Javascript!
Or in VBScript by
Click me for VBScript!
Note: I am aware this is a corner case, but it is an actual usage of the javascript:
label (can we still call it a label in this context?) that I encountered while creating mixed language HTAs.