copy thing automatically in html code example Example: jquery copy to clipboard document.execCommand("copy");