Home > Back-end >  (100% junction post) that how to empty page (such as online... )
(100% junction post) that how to empty page (such as online... )

Time:10-04

I know WebBrowser1 Navigate (' the about: blank); So we can directly to empty, but this method is to jump to page,

I want to know the way is directly with the content of the code to clear that the current page, rather than jump page

I remember demon elder brother spy++ can empty the content on the Internet explorer?

I also baidu to VB can call webBrowser1. DocumentText="" to empty the contents on the WEBBROWSER like this?


Delphi how make,,

CodePudding user response:

This is a way, but the right to view the source code can also see HTML content
 
USES MSHTML;

The begin
((WebBrowser1. Document as IHTMLDocument2). The body as
IHTMLBodyElement). CreateTextRange. Text:=';
end;

CodePudding user response:

((WebBrowser1. Document as IHTMLDocument2). Body. InnerHtml:=' ';

CodePudding user response:

The above said
Or perform a js? Or just release to rebuild control?

CodePudding user response:

Does 1 and 2 floor code is the same, can be seen in the source code,

Is there any way in the source code to see directly?
  • Related