AS/400 Toolbox for Java \ HTML classes \ HTML forms \ Form input \ Button forminput

ButtonFormInput class

Start changeThe ButtonFormInput class represents a button element for an HTML form.

The following example shows you how to create a ButtonFormInput object:

    ButtonFormInput button = new ButtonFormInput("button1", "Press Me", "test()");
    System.out.println(button.getTag());
This example produces the following tag:

<input type="button" name="button1" value="Press Me" onclick="test()" />

When you use this tag in an HTML page, it looks like this:

End change
[ Information Center Home Page | Feedback ] [ Legal | AS/400 Glossary ]