Q:

Javascript Program to print using onclick function

0

Program to print using onclick function

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<html>
<body>
<p id="demo"></p>
<button type="button" onclick="Print()">Press Me!</button>
<script>
function Print() {   
document.getElementById("demo").innerHTML = "Hello TutorialsLink!";
}
</script>
</body>
</html> 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now