read body attributes in mshtml

  • Thread starter Thread starter namf
  • Start date Start date
N

namf

Hi,

I'm using an AxWebBrowser to load HTML documents, and at a step of the
process I'd like to access the atribbutes of the body of a page.

I'm trying to use something like this:

string onloadText =
((HtmlDocument)document).body.getAttribute("onload",0).ToString();


I expected this to give me the text on this attribute, but instead I
get a System.__ComObject.

What cast should I make?? I'have already tried
mshtml.IHTMLDomAttribute, but the value gives me the same
System.__ComObject.. :(

any help would be greatly apreciated..

Tks in advance
Nuno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top