I\'m getting the following error for a simple function below:
TypeError: document.getElementsByTagName(\"p\")[0].innerHtml is not a function
use
document.getElementsByTagName("p")[0].innerHTML="hello my name is vaani";