I just wrote this code and when I tested it, the javascript wouldn't work.
I have javascript enabled and I tried with a different code and it worked. I think there's maybe a bug but I can't see it.
<!DOCTYPE html>
<html>
<body>
<p id=“id”>Some Text</p>
<script>
document.getElementById(“id”).innerHTML=“Different Text”;
</script>
</body>
</html>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…