IHTMLDOMNode doesn't have onClick event :(  
Author Message
lula





PostPosted: Visual C# General, IHTMLDOMNode doesn't have onClick event :( Top

Hi, everybody!
I have inserted a dom node(representing an image) in a web page by c #, but how could I manage the click event of the node(i.e.the image)
IHTMLDOMNode doesn't have th onClick event :(, some ideas
thank yuou all in advance.
Lulaleila


Visual C#3  
 
 
TaylorMichaelL





PostPosted: Visual C# General, IHTMLDOMNode doesn't have onClick event :( Top

Try adding it by using the attributes element. Set a new attribute with the name onclick and the value to the function to run.

Michael Taylor - 12/7/06


 
 
James Curran





PostPosted: Visual C# General, IHTMLDOMNode doesn't have onClick event :( Top

But an IHTMLElement does have an onClick and a IHTMLElement is an IHTMLDOMNode (but not necessarily vice-versa)