button copy url javascript code example Example: jquery copy to clipboard document.execCommand("copy");