How to append in javascript

<p id="data"></p>
<button onclick="appenddata()">Append</button>

<script>
function appenddata() {
   document.getElementById('data').append('This is append data.');
}
</script>

Related Sourcecode

More Sourcecode

×
Google login
SignUp with Email
X