The WebView's WebChromeClient's onCloseWindow method gets called, provided JavaScript is enabled in the WebView's WebSettings.
On Oct 3, 11:31 pm, jgaribay <juan.garibay.cervan...@gmail.com> wrote: > Hi, > > I am displaying web content in a WebView but I am having issues to > identify when the user presses a cancel button which should close the > current window. > > The cancel button is defined as follows in the page source code: > <input value="Cancel" name="cancel" type="button" > onclick="window.close();" /> > > There are other buttons which I am able to handle using > shouldOverrideUrlLoading() but since this cancel buttons does not > attempt to open a new page, this is not working. > > Does anyone know if there is a way to intercept this cancel??? > > By the way, when cancel button is pressed nothing happens. > > Thanks in advanced, > Juan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en