index | next

Example

Recall the Form Completion application.

The form's zip code input tag uses the onblur attribute to call the JavaScript function zipChanged:

   <h:inputText id="zip"
      size="5"
      value="#{bb.zip}"
      onblur="zipChanged(this.value);"/>
Note the use of "this.value" to send JavaScript the current zip code string.

index | next