<html>
<body>
<h1>HTML DOM insertAdjacentText() Method</h1>
<p>This method inserts a specified text, into a specified position.</p>
<h2 id="myH2">My Header</h2>
<p>Click the button to insert some text after the header:</p>
<button onclick="myFunction()">Insert text</button>
<script>
function myFunction() {
var h = document.getElementById("myH2");
h.insertAdjacentText("afterend", "My inserted text");
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_node_insertadjacenttext by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:04:00 GMT -->
</html>