I need your help. I want to call a function and assign the result to inner html of an element but it doesn't work. Below is the code:
function abc() {
  var a = document.getElementById("take").value;
  function Ram() {
    document.write("your name is : Ram <br>");
    document.write("your vill/post : Sunsyari <br>");
    document.write("your block is : Betalghat <br>");
    document.write("your Total land is: 5 bega <br>");
  }
  if (a == "Ram" || a == "ram") {
    document.getElementById("show").innerHTML = Ram();
  } else {
    document.getElementById("show").innerHTML = "wrong credential";
  }
}
Please help what to do?
 
    