<html>
<body>
<p id="demo">Click the button to alert the text of this paragraph.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert(document.getElementById("demo").innerHTML);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_element_innerhtml_return by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:02:19 GMT -->
</html>