- Daniel Ferrreira
- PowerBuilder
- Friday, 21 July 2023 09:03 PM UTC
Hi guys,
I have a window that uses the new webBrowser control, with a simple web page from my company.
This control is ok, but I'd like to see if you can help me do one or two things:
1. When the user clicks on a link, I'd like to open the default web browser, instead of inside the current control. This is the main issue.
2. Would it be possible to add, maybe a tag on the hyperlink, so that I can decide if I want to open the clicked link on the control or on the default browser? This is a plus, not mandatory.
I used the code below to open the web browser, on my addressChange event, it worked but it also navigates the control. I guess I could navigate back, but that would not be a great way to do things. I couldn't find, like a "return 1" to stop navigating.
inet inet_base
GetContextService("Internet", inet_base)
inet_base.HyperlinkToUrl(newurl)
Thanks a lot
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.