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