I’m passing one variable from my Java Class to my Web View using this codes:
web.loadUrl("javascript:window.onload = function(){setValue(\""+ amount1 +"\");};");
and with a Java Script code:
function setValue(amount1)
{
myValue = amount1;
document.getElementById("amount").value = myValue;
}
Now i just want to pass 2 variables in one function name setValue
any thoughts?
On the face of it, I would say it’s as simple as
and
But if you could explain a little more about what you are doing, we might be able to provide a better solution.