This is what I have.
<p class="right-side-header" title="Copy Text" id="text">I am cool</p>
Now the question is, what JavaScript will allow me to copy whatever text is in the <p>
tag. I am new to JavaScript. I have no idea how to go about this.
How can I copy the innerText
of the above element to the clipboard?