Portlet Factory, Version 6.1.2


 

Assign attributes to a button

This topic describes the steps in assigning an attribute to a button.

  1. Add a button builder call by using the Button builder.

  2. Assign an Attribute Setter builder call to the model. Make sure the builder call is assigned to the same tag assigned to the Button builder.

  3. In the Name field, select onclick.

  4. In the Value field, enter the following JavaScript to invoke the alert window. The example below tells the browser to display, "Hello World" in an alert box when the button is clicked.
    alert("Hello World")

  5. Click OK.

  • Button builder

    The Button builder adds a button input control to one or more pages in your model.

Parent topic: Attribute Setter builder


Library | Support |