I’ve only ever used javascript on HTML pages (dom manipulation, AJAX calls, you know what I mean) and I suspect this is also true for most web developers.
However, do we need to use javascript ? I think I remeber seeing VBScript used in that way as well. So that’s two possible languages to be used for scripting HTML.
But what should I do in order to be able to use any scripting language to do what we normally do with javascript?
You should be more specific regarding what you actually want.
If you mean “self-hosted in the browser”, then whatever you’re writing in either needs to be:
If you don’t mean “self-hosted” then anything that can be transformed to JavaScript, like:
To answer your last question: either write plugins for, or modify, all browsers to support whatever language it is you want (good luck), or write a self-hosted language transformer.