views:

108

answers:

1

I'm using the IE control embedded in an application. Works as advertised. When a user opens a new browser window I intercept the NewWindow2 event and force it into a new tab. However for a certain class of windows I want to allow a popup. Most notably a few windows legacy applications that use popup windows instead of Ajax for Date or Name pickers. How can I figure out that a window was requested by JavaScript window.open(...) or with a specific size? Thx for helping.

A: 

Sorry, I can't really help - I would love to know the answer to this too. I'm using Borland Delphi 5 (an old version, I know) with the standard TWebBrowser. One possible solution is to use TEmbeddedWebBrowser from bsalsa.com, but is there a way it can be done with the standard web browser control? The aim is to read the values of Javascript's window.open (if that was how the window was called) and set the new window to these values.

Thanks.