title: Dynamically change HTML element in android webView
body: <p>I know this question is very common and can be solved using <a href="https://stackoverflow.com/questions/11722400/programmatically-change-the-src-of-an-img-tag">here</a> - JS or JQuery and <a href="https://stackoverflow.com/questions/4325639/android-calling-javascript-functions-in-webview">here</a> - how to run it on Android. Well this methods are working fine but when we call:             </p>
  
  <pre><code>`myWebView.loadUrl("javascript:document.body.innerHTML = document.body.innerHTML.replace('link1', 'link2')");`
  </code></pre>
  
  <p>image link1 is changing with link2, image is loading but page is restarted, so if I am at the end I am going to the beginning... can I just change link1 to link2 in real time, to not reload the page like in a real browser?</p>
  
  <p>and I tried also setting id in my html file, like:</p>
  
  <pre><code>&lt;img src="https://link1.jpg" id="dm5kode"/&gt;
  </code></pre>
  
  <p>and run on Android:</p>
  
  <p><code>myWebView.loadUrl("javascript:document.getElementById('dm5kode').src = 'link2'");</code></p>
  
  <p>here I don't get nothing just empty screen...</p>