0

I use c++buider4 and TWebBrowser. How can I avoid "mailto" to be executed when this type of link is clicked? Actually, I dont want this link to be executed because when it's executed, it switch to mail application and open a new windows. Thanks

1 Answers1

2

Use the OnBeforeNavigate2 event to cancel the operation if the URL being requested starts with mailto:.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770