Copy Alert Box text on button click

Can we copy the text of alert on button click?