problem with using Javascript with JSF

As new to JSF, I want to know , can I use script tag to define function in the head section similear to HTML or there is any other location to do this.

I am using following .

I have defined following in head section.

<script language="javaScript>

function test()

{

alert("Have you check the value");

}

></script>

And want to call following

<h:inputText value="#{mybean.name}" onblur="test();" />

But it is not working. Am I doing somthing wrong or there is another way to call Javascript.

Thanks n Regard

Roshan

[619 byte] By [Doga] at [2007-11-27 8:10:55]
# 1
I have found the problem, There is major mistake of missing single cote. After all I am able to execute the script.Thanks.
Doga at 2007-7-12 19:54:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...