Portlet Factory, Version 6.1.2


 

HTML Event Action builder

Use the HTML event action builder to associate a function with an HTML behavioral attribute.

Use this builder when you want to specify a form action to run whenever a form is submitted. The HTML behavioral attributes are those that correspond to HTML event handlers, such as OnClick or OnChange, for <input/> tags. The HTML event action builder can only define actions for the events that a particular tag supports.

The HTML event action builder is created for a specified HTML tag on a page. The builder sets the event attribute value through a JavaScript call, associating the correct function behavior with the specified event on the selected tag. More than one HTML event action can be associated with an HTML tag, and functions are executed in the order of the HTML event action builder call in the builder call list.

Behaviors can be set for controls and tags that can accept user input. The HTML event action is also useful in the case when a certain type of attribute cannot be set in the builder dialog for a particular builder. For example, the select builder editor allows you to set only the OnChange function. In order to set the OnClick function, add a HTML event action builder call to your model.

Use the HTML event action builder to define actions for a particular browser event.

Not all HTML tags support behavioral attributes and a given tag might not support all behavior event types. Refer to an HTML reference to check if a particular event is supported by a given tag.

Profile this builder to alter the characteristics of a named HTML tag.

Parent topic: Builder help


Library | Support |