
function copyToClipboard(inputField)
{
  r = inputField.createTextRange();
  r.select();
  r.execCommand('copy');
}

