In this example if we double click on the button it will call the copyText() function which will copy the text of first textbox to the second textbox.
copyText()