Code didn't work and still return 'f' world after function call, what's wrong with my code? thanks for help
HTML:
<html>
<head>
<script type="text/javascript" src="functions.js"></script>
</head>
<body onload="changeText()">
<p id="P1">
fu
</p>
</body>
</html>
JS:
function changeText(){
document.getElementById("p1").innerHTML = "slm"
}
P1 !== p1