Sunday, October 3, 2010

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

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate