Possible to publish an Event from index.html?

Hi,

I have a Javascript callback in index.html and I’m wondering if I can fire an event in Ionic when that is hit? It it possible?

Thanks.