Here is a real simple script for adding a button to your webpage using Javascript:
<INPUT TYPE=”button” NAME=”myButton” VALUE=”Click Me” onClick=”clickFunction”>
Adding the above code will add a very simple button saying Click Me.
Properties
- form – The form object that includes the button.
- name – The name of the button.
- type – The type of element which is button, submit, or reset.
- value – The value of the button that appears on the button.
Methods
- blur() – Takes the focus away from the radio button.
- click() – This function acts as if the user clicked the button.
- focus() – Gives the focus to the checkbox.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
Tags: button, click, java, javascript, tools