Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Events in a TBrowser component
Sun, May 19 2024 7:18 AMPermanent Link

George

Hi everybody,

I am using TBrowser component to load some js through the DocumentText property which shows perfectly, is there a way to get access to events happening inside the TBrowser component, e.g., selection or clicks, etc.

Thanks,

George
Sun, May 19 2024 8:46 AMPermanent Link

erickengelke

Avatar

George wrote:
> I am using TBrowser component to load some js through the DocumentText property
> which shows perfectly, is there a way to get access to events happening inside the TBrowser
>component, e.g., selection or clicks, etc.

The Browser uses a standard HTML IFRAME, you can read up on them here:
https://blog.logrocket.com/the-ultimate-guide-to-iframes/

You can send events to an IFRAME, but I'm not aware of how you can read events unless you also coded the IFRAME's web page and intentionally message the owning application.  I could be wrong about that.

Note: A lot of sites set a flag which tells your browser to not display its content inside an IFRAME..

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Image