Page 1 of 1

Is there a way to intercept the pages that are requested before they are loaded on webviewgadget ?

Posted: Thu May 02, 2024 3:14 pm
by skinkairewalker
hello everyone !
Is there a way to intercept the pages that are requested before they are loaded on webviewgadget ?

I'm creating a webapp, and I want to prevent the user from accessing a website that shouldn't be in the webview. There is a way to intercept and prevent it from loading, or allow it to load.

Re: Is there a way to intercept the pages that are requested before they are loaded on webviewgadget ?

Posted: Thu May 02, 2024 4:38 pm
by infratec
I can only say with WebView2 it is possible.
There is a 'navigation callback' and you can block loading the page depending on the return value.

See also the help for the WebGadget()