> Which language is considered the "default" script language in .NET?
Non-sequitir.
As you pointed out, this is strictly a client-side issue.
In MSIE, the "default" script language is whichever one is declared first in the page. If neither is specified, then JavaScript is assumed.
You can prove this easily:
Code:
**** demo1.html****
<form>
<input type=button value="demo" onclick="if ( true ) { alert('JS'); }">
</form>
*******************
**** demo2.html****
<script language="VBScript">
Dim foo : foo = "whatever"
</script>
<form>
<input type=button value="demo" onclick="if ( true ) { alert('JS'); }">
</form>
*******************
**** demo3.html****
<script language="JavaScript">
var bar = "something";
</script>
<script language="VBScript">
Dim foo : foo = "whatever"
</script>
<form>
<input type=button value="demo" onclick="if ( true ) { alert('JS'); }">
</form>
*******************
demo2 won't even compile, much less run. Because MSIE "understands" that you are using VBScript as the default language for this page and of course the
JS used in the onclick is syntactic nonsense in VBS.
You can make demo2 work by adding a
language attribute to the button, thus:
<input type=button value="demo"
language="javascript" onclick="if ( true ) { alert('
JS'); }">
Note that demo3 works just fine, because the *first* script tag encountered has established JavaScript as the default language for the page.