thanks for replay, yes that for sure would work but that is not my page so I do not have control over the content
On Oct 3, 11:21 pm, metal mikey <[email protected]> wrote: > You could replace theJavaScript("window.close();") with some > otherJavaScriptthat you can intercept. > > On Oct 4, 2:31 pm, jgaribay <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

