what the html button "select all" "copy"

i have this form and i want to create button in javascrip where if the user clicks on it it selects all the text and puts it in the clipboard so the user can copy to it