Webview Popups (Tapatalk)

You must Login before you can answer or comment on any questions.

Hello all. I'm using a webview to view a forum in my app (since doing so with the API proved too difficult and memory intensive). We installed Tapatalk, a free mobile forum API, on the forum and now whenever the webview opens the page a popup comes up suggesting the user download the Tapatalk ap to view the forum. Is there a way to surpress webview popups/alerts? Or does someone know how to remove this alert from the forum itself? I'd prefer to not have to uninstall Tapatalk in case we decide to use it in the future. Thanks.

1 Answer

"alert" function is property of global object (window in DOM environment), so you can just simply redefine that property like this:

window.onload = function() {
 
    window.alert = function() {};
 
    alert('Test');
};

Your Answer

Think you can help? Login to answer this question!