The function myFunction() is triggered when some text is selected in the input field. The function shows a message.