<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> 文本框內容改變事件 </title>
<script type="text/javascript">
function message(){
alert("您改變了文本內容!"); }
</script>
</head>
<body>
<form>
個人簡介:<br>
<textarea name="summary" cols="60" rows="5" onchange=" message() ">請寫入個人簡介,不少於200字!</textarea>
</form>
</body>
</html>