Solved

Clear an IHTMLDocument2

Posted on 2004-09-20
2
431 Views
Last Modified: 2012-06-21
Hi,
Is there are way to clear an IHTMLDocument2 so that it becomes blank again?
0
Comment
Question by:fidel83
2 Comments
 
LVL 7

Expert Comment

by:LRHGuy
ID: 12109100
Try:

eWebBrowser.Navigate('About:blank');
0
 
LVL 4

Accepted Solution

by:
MrJul earned 250 total points
ID: 12113586
Simply two lines :

IHTMLDocument2.write(nil);
IHTMLDocument2.close();
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now