Try this:
      
<button id="test">Click me to copy!</button>
      
    
      
        document.querySelector('#test').addEventListener('click', function () {
          if (ultralightCopy('This is test string.')) {
            alert('Success! Try to paste.');
          } else {
            alert('Copy failed! This Browser is not supported!');
          }
        });