Clear the contents of input text box when loop is clicked