<button onclick="copyURL()">Copy</button>
<script>
function copyURL() {
var currentURL = window.location.href;
var tempInput = document.createElement("input");
tempInput.value = currentURL;
document.body.appendChild(tempInput);
tempInput.select();
tempInput.setSelectionRange(0, 99999);
document.execCommand("copy");
document.body.removeChild(tempInput);
alert("Copied!")
}
</script>
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)