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