In this piece of work, I will tell you “How to Add Copy Button in Blogger & Word press”. It is very easy to create and understand. If you are a newcomer and don’t have knowledge of how to put the copy button on your website, visit this website take advantage, and put it on your website. You can add this copy button in your previous posts or also a new one.
Now move on, go to your website dashboard, and select the area of your article where you want to put the copy button. Choose the area of your article or paragraph, after the selection draws the table but it’s up to you how much your table small or big. Adjust the coding in the table. Now it’s time to take the main step, copy the code and paste it into your website’s selected area. After pasting the code you just write copy at the bottom of the code. This code is applicable for both Blogger and Word Press websites. According to this method, you will easily add the Copy Button on your website.
Copy the Code Button
<br><textarea rows="5" cols="60" readonly id="Inputtxt">Hammad Hashmi</textarea>
</br>
<button onclick="myFunction()"></button>
<script type="text/javascript">
function myFunction() {
var copyTxt = document.getElementById("Inputtxt");
copyTxt.select();
document.execCommand("copy");
}
</script><br>Copied!