Here is how I solved it, I injected javascript into the web page Iām navigating to, and redefined the alert and confirmed the fields
window.alert = function(__msg){window.external.notify(' + __msg + ');};
Then, in the notification function of the script, this message is displayed using the MessageBox. Hope this helps others as well. The previous answer was a workaround, this is what I think is the right solution to my problem.
source share