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.
Does somebody have any idea how I do this?
Thanks in advance.