To copy some text on clicking a button.