javascript - How to detect click on button which is created through zopiom script for chat in android webview -


i have javascript code implementing in android webview, want detect click on button created javascript on webview. script is

<script type="text/javascript">  window.$zopim || (function(d, s) {      var z = $zopim = function(c) {              z._.push(c)          },          $ = z.s =          d.createelement(s),          e = d.getelementsbytagname(s)[0];        z.set = function(o) {          z.set.          _.push(o)        };      z._ = [];      z.set._ = [];      $.async = !0;      $.setattribute("charset", "utf-8");      $.src = "url , key";      z.t = +new date;      $.      type = "text/javascript";      e.parentnode.insertbefore($, e)    })(document, "script");  </script>    <script>    (function(i,s,o,g,r,a,m){i['googleanalyticsobject']=r;i[r]=i[r]||function(){    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new date();a=s.createelement(o),    m=s.getelementsbytagname(o)[0];a.async=1;a.src=g;m.parentnode.insertbefore(a,m)    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');      ga('create', 'ua-96616692-1', 'auto');    ga('send', 'pageview');      </script>

i , webview layout is

    <webview             android:id="@+id/webview"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:clickable="false"/> 

and screen after loading webview in layout enter image description here

and screen after clicking on webview message button appears url, want detect click on message button, action when click on shows message page bellow enter image description here


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -