Search

Sponser

Sunday, 21 October 2012

Inserting a push button




A push button allows the site visitor to give the web browser a command regarding the form, such as "Submit this form now". Sometimes, a button is used in combination with a JavaScript action that performs some function when the button is clicked.
To add a push button:
1. Select Insert > Form > Push Button...

2. Double click then enter a name to identify the button in Name.

3. In Value, enter the text to use as the button's label. If the button type is submit, this value is also sent to the server.

4. Select a Button type.
  • If you set the type to Submit, the button will cause the values in the form to be sent to the server.
  • If you set it to Reset, the button will cause the form to be cleared.
  • If you set it to General, the button doesn't do anything by itself; it needs to have an attached JavaScript action that performs some function when the button is clicked.
5. Click OK.
6. If you wish to attach an action, select Insert > Form > Form. Then make the form element is belonged to the form.
Note: If you add the form in the first, then the form elements, the form elements are belonged to the form you have added automatically. 

Recommeded Links