How to open link clicked in webview in default web browser?
How to open link clicked in webview in default web browser?
If there is a url clicked in a web page displayed with TWebView2, the linked is opened in Edge. Is there any way to make it so that it will open in user's default web browser?
Thank you
Thank you
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Dear Hua,
We have implemented it for you
Do you need it for 32 or 64 bits ?
What C compiler ?
We have implemented it for you
Do you need it for 32 or 64 bits ?
What C compiler ?
Re: How to open link clicked in webview in default web browser?
Thanks Antonio!
I am using BCC77 32-bits
I am using BCC77 32-bits
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Dear Hua,
Modified libs sent to you by email. Please test it and let me know how it works for you
many thanks
Modified libs sent to you by email. Please test it and let me know how it works for you
many thanks
Re: How to open link clicked in webview in default web browser?
Hello Antonio,
I'm having the exact opposite problem as Mr. Hua. When I click a link on a page opened with TWebView2, it opens in a new window in the default browser. How can I get it to open in TWebView2?
I'm having the exact opposite problem as Mr. Hua. When I click a link on a page opened with TWebView2, it opens in a new window in the default browser. How can I get it to open in TWebView2?
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Dear Hakan,
That is exactly what we have implemented.
Are you using 32 or 64 bits ? What C compiler ?
That is exactly what we have implemented.
Are you using 32 or 64 bits ? What C compiler ?
Re: How to open link clicked in webview in default web browser?
32 bit. Harbour. MSVC 2022
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Sent to your email
Please let me know if it works as expected
Please let me know if it works as expected
Re: How to open link clicked in webview in default web browser?
Thank you Antonio,Antonio Linares wrote: Sat Nov 01, 2025 5:25 am Sent to your email
Please let me know if it works as expected
I'll try it and get back to you right away.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Re: How to open link clicked in webview in default web browser?
Thanks Antonio!
Received your email but the links have expired. Could you resend?
I only managed to check the email after coming into work today
Received your email but the links have expired. Could you resend?
I only managed to check the email after coming into work today
Antonio Linares wrote: Fri Oct 31, 2025 10:11 am Dear Hua,
Modified libs sent to you by email. Please test it and let me know how it works for you
many thanks
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Thanks Antonio.
I got this error message
I got this error message
Code: Select all | Expand
Error: Unresolved external '_hb_retclen_buffer' referenced from FIVEHC.LIB|stringFWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Antonio Linares wrote: Sat Nov 01, 2025 5:25 amSent to your email
Please let me know if it works as expected
I have tested and it does not worked for me.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to open link clicked in webview in default web browser?
Dear Hakan,
Are you using Class TWebView2 ?
Here it is working fine