VB6: assign javascript function to a dom element

Posted by Fuxi on Stack Overflow See other posts from Stack Overflow or by Fuxi
Published on 2010-02-17T22:07:26Z Indexed on 2010/05/20 3:40 UTC
Read the original article Hit count: 136

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about vb6

Related posts about JavaScript