title: How to attach current url link to COPY THS TEXT for this code?
body: <p>I have a button that will copy "COPY THS TEXT" to clipboard using the jquery.</p>
  
  <p>i want to make the "COPY THS TEXT" link to current URL</p>
  
  <pre><code>&lt;button class="js-copy-bob-btn"&gt;Set clipboard to BOB&lt;/button&gt;&lt;br /&gt;
  
  function fallbackCopyTextToClipboard(text) {
    var textArea = document.createElement("textarea");
    textArea.value = text;
    document.body.appendChild(textArea);
    textArea.focus();
    textArea.select();
  
    try {
      var successful = document.execCommand('copy');
      var msg = successful ? 'successful' : 'unsuccessful';
      console.log('Fallback: Copying text command was ' + msg);
    } catch (err) {
      console.error('Fallback: Oops, unable to copy', err);
    }
  
    document.body.removeChild(textArea); 
  }
  function copyTextToClipboard(text) {
    if (!navigator.clipboard) {
      fallbackCopyTextToClipboard(text);
      return;
    }
    navigator.clipboard.writeText(text).then(function() {
      console.log('Async: Copying to clipboard was successful!');
    }, function(err) {
      console.error('Async: Could not copy text: ', err);
    });
  }
  
  var copyBobBtn = document.querySelector('.js-copy-bob-btn');
  
  copyBobBtn.addEventListener('click', function(event) { 
    copyTextToClipboard('COPY THS TEXT');
  });
  </code></pre>
  
  <p>id like the COPY THS TEXT to be linked to the current page so it would be</p>
  
  <p><code>&lt;a href="THIS IS THE CURRENT PAGE HERE VIA JQUERY"&gt;COPY THS TEXT&lt;/a&gt;</code></p>