FancyPrairie
Programmer
I have a field on my html page for which I want to programmatically add an onmouseover event when the user clicks a button. I thought the following would work, but it doesn't. What am I doing wrong?
Note the CreateMouseOver sub is called via the onclick event of the button.
Note the CreateMouseOver sub is called via the onclick event of the button.
Code:
Sub CreateMouseOver()
ctl.onmouseover = "TestMe()"
End Sub
Sub TestMe()
MsgBox "Here i yam"
End Sub