This project has moved. For the latest updates, please go here.

can I ran javascript function?

Jan 11, 2010 at 9:00 AM

and also another Q

can htmlnode be click-ball that mean if i click on a node what happand ? and if it possible?

Jan 11, 2010 at 12:00 PM

Html Agility Pack does not provide any browser engine functionality. No Javascript or CSS will be applied or available. It is a simple parser of HTML markup.

I'm confused about your second question, click on a node?

Jan 11, 2010 at 8:21 PM

i mean if u had a node and it got   event such as onclick or click or any other event and u want

to active the event .

if it possible ?

and can u tell me what is the advantages of HTML agility over  mshtnl.?

and last each node in HTML page got a lot of property why cant is see all them ?


Jan 11, 2010 at 9:27 PM

MSHTML and HTML Agility Pack are two very different things.

MSHTML is a rendering engine that provides interactivity with HTML.

Html Agility Pack is a parsing engine that provides the html nodes as data.

In HAP there are no events, no clicking. Even when using HAP as a COM object embedded in a web page as script I can't think of a way that you could initiate on onclick event or code.

If you're looking to parse html and then execute it I think it might be better to do something as a firefox extension. But without knowing the context of the program or the overall goal it is hard to say.