Home > Back-end >  Do you have any similar BeforeNavigate2 event, use TChromium?
Do you have any similar BeforeNavigate2 event, use TChromium?

Time:09-26

When using TWebBrowser, my program is written like this:

Procedure TBaseForm. WbBeforeNavigate2 (Sender: TObject;
Const pDisp: IDispatch; Var URL, Flags, TargetFrameName PostData,
Headers: OleVariant; Var Cancel: WordBool);
The begin
Cp. Excute (URL);
Cancel:=True;
end;

Users click on a link on the page, the program will stop browsing operation and make some action based on the URL

Please use TChromium, how to achieve this function?

CodePudding user response:

The building Lord, please remember how to solve this problem?
  • Related