How to set entire HTML in MSHTML?

Posted by douglaslise on Stack Overflow See other posts from Stack Overflow or by douglaslise
Published on 2010-03-20T13:41:27Z Indexed on 2010/03/20 14:41 UTC
Read the original article Hit count: 585

Filed under:
|
|

How to set entire HTML in MSHTML?

I am trying using this assignment: (Document as IHTMLDocument3).documentElement.innerHTML := 'abc';
but I got the error:
"Target element invalid for this operation"
I tried also using (Document as IHTMLDocument2).write but this form only adds html into the body section, and I neet to replace all the HTML source.
Somebody has any idea how I do this?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about mshtml

Related posts about html