Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Custom Protocol catch

Post Reply
bullsito
Posts: 32
Joined: Sun Dec 13, 2020 4:19 pm

Custom Protocol catch

Post by bullsito »

Hi again.
What is the event to check the protocol of a link.
lets say io have the follow link

Code: Select all

<a href="mycustom://data.com">click me</a>
or

Code: Select all

<a href="mycustom^http://data.com">click me</a>
on which event handle i can get the mycustom:// string so i do what i want wit this?

thank you.
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Custom Protocol catch

Post by salvadordf »

Hi,

Use the TChromium.OnBeforeBrowse event and check the request.url value.
Post Reply