# <script> function test() { if(document.a.b.value.length>50) { alert("不能超過(guò)50個(gè)字元!"); document.a.b.focus(); return false; } } </script>