JavaScript Statements
JavaScript Statements
This statement tells the browser to write "Hello." inside an HTML element with id="demo";
<!DOCTYPE html>
<html>
<body>
<p>In HTML, JavaScript statements are "commands" to the browser.</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = "Hello.";
</script>
</body>
</html>
Post A Comment
No comments :
Thanks For visiting Infotech Solutuion Blog