<html> <script language="Javascript"> <!-- test(); function test() { alert("テスト"); } --> </script> <body> <input type="text" name="text1" size=40> </body> </html>