<!DOCTYPE html>
<html lang="en-US">
<body>
<input type="text" value="Change me" onchange="myFunction()">
<script>
function myFunction(){
alert("Change Done");
}
</script>
<p><strong>Note</strong> : Change the text in the input field and focus out.</p> </body>
</html>