FYI You can use the native clipbloard APIwriteText method like so navigator.clipboard.writeText(window.location.href) and get rid of the entire hidden textarea function.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
FYI You can use the native clipbloard API writeText method like so
navigator.clipboard.writeText(window.location.href)
and get rid of the entire hidden textarea function.