(Fred) writes:
> This seems awkward, isn't there a better way to place event handlers
> in the rest of the code with the logic for everything else like you
> can with VBScript?
I don't know what you can with VBScritp. Can you explain what you want
to achieve?
> <script for="myActiveX" event="Onclick()" language="javascript">
This construction only works in IE.
> In other words, can I put it all between one <script></script> tag?
Sure
<script type="text/javascript">
function myHandler1(event) {...}
function myHandler2(event) {...}
...
document.getElementById("myActiveX").onclick = myHandler1;
document.getElementById("myActiveX").onconnect = myHandler2;
/* don't know the onconnect evemt, must be IE specific too */
</script>
/L
--
Lasse Reichstein Nielsen -
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'