function s1Func(){ var s1Input = document.getElementById("s1Input"); s1Input.select(); document.execCommand("copy"); }