I have created an app with a twebBrowser in it. Problem is when i click on some link, in say gmail, it opens in a new window of my default browser( which is IE). how do i make it work like firefox or chrome etc. which opens the clicked links in their windows. The url’s should open in the TWebBrowser’s window. Must i create a new Form at runtime with TWebBrowser in it at runtime for that? Code not needed as such, ideas will do
Thanks in Advance.
P.S. My org blocks Gmail, Facebook etc. , However through my TWebBrowser, i can open them. Can my QA ppl see that in their log? My guess will be no, since then they would block it. What is your comment on this
TWebBrowserhas anOnNewWindow2event. Assuming the form holding theTWebBrowseris namedForm1and the web-control itself is namedWebBrowser1, write a handler like this:This will create a new window, with a new
TWebBrowserwhen the “click” is supposed to lead to a new window.