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 saidOr 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?