Solved

Clear an IHTMLDocument2

Posted on 2004-09-20
2
437 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 219
delphi parse string to params 3 123
Controlled Assessment GCSE - desperate help needed 4 85
Breakpoint doesn't stop in my variable 3 28
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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