New to Javascript. Tried text type javascript also. Not worked. I doing this piece of code in notepad++ using html as extension and implementing on mozilla.
<html>
<head></head>
<body>
<h1>JavaScript in Body</h1>
<p id="demo">A Paragraph.</p>
<button type="button" onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("demo").innerHtml = "Paragraph changed";
}
</script>
</body>
</html>
.innerHTML, "HTML" is all caps.