So this is an extinction to the question "copy text string on click"!
here is the code that I want to use to copy the alt image when I click on it
function copy(that){
var inp =document.createElement('input');
document.body.appendChild(inp)
inp.value =that.textContent
inp.select();
document.execCommand('copy',false);
inp.remove();
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js">
</script>
<span onclick="copy(this)">
<img
style="width:100px;"
draggable="false"
class="emoji"
alt=""
src="https://s.w.org/images/core/emoji/2.4/svg/1f600.svg">
</span>
the script will copy text when you click it, It needs to be modified so it copy the image alt to the clipboard.