alert on the selection of a file in html code example Example 1: javascript alert alert("string"); Example 2: how to alert in javascript alert("Message")