android - WebView Cant get onClick event -
i have app webview. in webview app shows user internet page have link launch app, in activity. in html page doing like
<a href="my.special.scheme://other/parameters/here"></a>
and goes fine, need same thing javascript. doing this:
<html> <head> <script> function redirect(n){ window.location = n; } </script> </head> <body> <button id="target" onclick="redirect('my.special.scheme://other/parameters/here')" >name</button> </body> </html>
but nothing happens. using android 1.6
any suggestion?
did enable javascript view? disabled default (docs).
Comments
Post a Comment