For Adobe ColdFusion application servers Button

A button format field creates a button using the HTML <button></button> tag pair. The field caption appears as the button's label and may contain markup. For example, you could add an icon-sized image to your button. To use the button, you might attach a JavaScript action to the onclick event by adding the attribute onclick="myFunction(). You can use a button to submit your form by providing the attribute type="submit".

Examples

A plain button:

<cf_terrafield
  name="MyButton1"
  format="button"
/>

A button with :

<cf_terrafield
  name="MyButton2"
  format="button"
  caption="E=m<i>c</i><sup>2</sup>"
/>

A button with JavaScript:

<cf_terrafield
  name="MyButton3"
  format="button"
  caption="Push me!"
  onclick="this.innerHTML='<b>harder!</b>'"
/>

A button that submits:

<cf_terrafield
  name="MyButton4"
  format="button"
  caption="Submit"
  type="submit"
/>
HyperText Markup Language
The coding language used to create hypertext documents for use on the World Wide Web.
No comments yet