Not sure why this has been so difficult for me today, but for some reason I cannot seem to get it to copy the current URL to the clipboard. Overall, I’m looking for a way to do it without needing to create some hidden text elements. This is what I’m trying so far: When I try to go about it
Tag: clipboarddata
event.clipboardData.setData in copy event
I have looked at many posts but could not find a clear current answer to the following two questions as it seems standards and browser support has been constantly changing. Is it a legal operation according to the standard to change the clipboard with event.clipboardData.setData inside a ‘copy’ event handler? Answer Clipboard APIs were indeed in active development as of