<html> <head> <script type="text/javascript"> document.getElementById('my_id').onchange = function(){alert('Alert');} </script> </head> <body> <textarea id="my_id" cols="40" rows="4"></textarea> </body> </html>