title: Copy clipboard function working locally but not working server
body: <p>I am using the below script: It is working locally in visual studio. but in server it throws </p>
  
  <blockquote>
    <p>"Cannot read property 'write text' of undefined"</p>
  </blockquote>
  
  <pre><code> function GetCopyText(thislink) {
      var Content = thislink.parentNode.parentNode.parentNode.parentElement.parentElement.parentElement.parentElement.children[2].children[0].children[0].innerText;
  
      navigator.clipboard.writeText(Content).then(function () {
          // alert('Async: Copying to clipboard was successful!');
      }, function (err) {
          console.error('Async: Could not copy text: ', err);
      });
  }
  </code></pre>