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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -