[android-developers] Re: how to intercept javascript onclick="window.close()"

2010-10-03 Thread metal mikey
You could replace the JavaScript ("window.close();") with some other JavaScript that you can intercept. On Oct 4, 2:31 pm, jgaribay 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 > curren

[android-developers] Re: how to intercept javascript onclick="window.close()"

2010-10-04 Thread jgaribay
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 wrote: > You could replace theJavaScript("window.close();") with some > otherJavaScriptthat you can intercept. > > On Oct 4, 2:31 pm, jgaribay wrote:

[android-developers] Re: how to intercept javascript onclick="window.close()"

2010-10-08 Thread Lance Nanek
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 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 sh