I have embedded an ActiveX control on my web page.I need to change a property and call a function of the ActiveX control when the user clicks a html image?

I think it can be done thru Javascript or vbs.