How to get url from html a tag custom attributes in android? -


<a href="url_href" data-href="wanted_url">click me</a> 

in android webview there way url specified in custom attributes?

in problem need url present in data-href(i.e wanted_url) attributes when user click on click me link

whenever user clicks on click me link android provides url present in href attributes.is there way url present in custom attributes?

webview doesn't provide information html elements have clicked.

if own page showing in webview, 1 possible way achieve goal encode wanted_url inside url_href, parse inside webviewclient.shouldinterceptrequest (http://developer.android.com/reference/android/webkit/webviewclient.html#shouldinterceptrequest(android.webkit.webview,%20java.lang.string)).


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -