Disable popups and alertboxes in android webview

后端 未结 2 1837
逝去的感伤
逝去的感伤 2020-12-19 08:06

I am using webview with javascript enables since it is required in my app fulltime. My issue is that I need to avoid popups while loading url\'s in my webview is there a way

2条回答
  •  再見小時候
    2020-12-19 08:47

    You could try overriding alert,confirm, etc. Maybe add a flag on when to allow and when not to allow the alert to show. JavaScript: Overriding alert()

提交回复
热议问题