Receive messave from website

Hi…
Please help regarding webview, since i use it mainly on my app

I have succesfuly follow the instruction of this guide: GitHub - thunkable/webviewer-extension: Communicate between the Thunkable Web Viewer and a website and it works…

But now my question is, what code should i include in my website if i want this to happen: when a user click any url in website it send message to the app.

Thank you