0

I know this is a duplication question and i have been doing a lot of research about this but still not able to find the answer.

I am developing a web page and open this url using Android WebView. So, I am trying to create a button to reload the URL. using :

location.reload(true)

But its not working. Is there anyone has solution ? Thanks

// Update

I am not able to edit the app that has the webView. Just using javascript.

// Update

Hmmm Its weird. Its working now without changing anything in my code. I just don't understand why.

4
  • Does this answer your question? Is there a better way to refresh WebView? Commented Dec 13, 2019 at 20:19
  • @jeprubio I am not able to edit the webView. The WebView is coming from a 3rd party application. i am just using javascript and load it into the webview. If that make senses to you. Commented Dec 13, 2019 at 20:22
  • @daniel8x I think this will help using javascript Commented Dec 13, 2019 at 21:58
  • hmmm. It's weird. I have not change anything. and everything is working now. I dont know why ... Commented Dec 13, 2019 at 22:06

1 Answer 1

0

Try the following:

myWebViewID.loadUrl("REPLACE_WITH_YOUR_URL");
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. But i am not able to edit the webView. just using javascript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.