Convert scripts from website in-app browser to ionic functions

Hello everyone,

I am using the InAppWebBrowser to open a website in full screen page.

The question is, can i call a javascript function (in the website which is opened in InAppWebBrowser) from the App or the opposite, calling ionic function from the website?

Exemple : How do i convert an alert javascript function (in the website) to a local notification with ionic ?