<input type="text" class="formcontrol" value="{{
referral_link }}">
<a href="#" class="copybutton">Copy link to clipboard</a>
So there is an input field which generates tracking link ( {{referral_link }} ) for logged in users. Next to it there is a button which should copy that link to clipboard when clicked on.
Is there an easy HTML5 solution for this or what is the current most modern way to do this ?