Whats the XHTML equivalent of the following: <script LANGUAGE="javascript" FOR="MyControl" EVENT="Connect(reason,Client)"> Code (markup): Doesnt like the "for" and "event" properties....
THT, technically speaking there is no equivalent, because the FOR and EVENT attributes of the SCRIPT element are not even HTML; they are MSIE extensions. The more standard, more supported, and technically correct method is just as simple: [color=red]NO[/color] <script type="text/javascript" for="myform" event="onsubmit()"> . . . [color=green]YES[/color] <script type="text/javascript"> document.getElementById("myform").onsubmit = function() { . . . } Code (markup):