# Adding a listener to the web browser

**URL:** <https://forum.inductiveautomation.com/t/adding-a-listener-to-the-web-browser/9497>\
**Category:** Ignition\
**Created:** [December 30, 2014, 6:06pm UTC](https://forum.inductiveautomation.com/t/adding-a-listener-to-the-web-browser/9497 "2014-12-30T18:06:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_beall](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@r\_beall](https://forum.inductiveautomation.com/u/r_beall)\
**Post date:** [December 30, 2014, 6:06pm UTC](https://forum.inductiveautomation.com/t/adding-a-listener-to-the-web-browser/9497/1 "2014-12-30T18:06:39Z")

</div>

Hi there,

I’m currrently working with the new web browser module and I’m having difficulty capturing when a web page is fully loaded. I was thinking I could register a new load listener to tell me when it’s finished loading (via the docs) and have it call a custom method. I’m not sure how you’d implement this in jython/ignition. There is an ‘addLoadListener’ method (…browser.getBrowser().addLoadListener…), but I’m not sure what the parameters are for it, or how to implement it.

Is this possible, and if not, is there possibly another way to accomplish what I’m asking for?

Also, is there a manual for the web browser anywhere?

This is the code from the jxBrowser docs for adding a loadListener.

```auto
browser.addLoadListener(new LoadAdapter() {
    @Override
    public void onFinishLoadingFrame(FinishLoadingEvent event) {
        if (event.isMainFrame()) {
            // web page is loaded completely including all frames
        }
    }
});
browser.loadURL("http://www.google.com");

```

The docs  
[teamdev.com/downloads/jxbrow … oad-events](http://www.teamdev.com/downloads/jxbrowser/docs/JxBrowser-PGuide.html#load-events)

Thanks

Edit: You can disregard, I was able to figure it out. Thanks again
