VB6: assign javascript function to a dom element
- by Fuxi
hi,
i'm using the mshtml library for parsing out html via MSHTML.HTMLDocument.
my question: is there a way to assign a javascript function to a dom element?
i've tried something like:
div.onmouseover = "function(){alert('mouseover')}"
and
div.setattribute "onmouseover" , "function(){alert('mouseover')}"
without success (no error but no effect either).
anyone knows if its possible?
thx