I need to copy the URL title so I can save it without manually selecting it and then copying, so I wonder if is it possible to copy the window title to the clipboard?
I have tried with the following script with no luck :
<script>
function myFunction() {
var copyText = This.document.title;
copyText.select();
document.execCommand("copy");
alert("Copied the text: " + copyText.value);
}
</script>
Any help would be appreciated, thanks in advance.