What is a button object?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is a button object?
Rating:
A button object is a form element that is used to invoke functions. The most useful event handler of a button object is onclick. It is mostly used to submit forms, perform calculations, etc.
The syntax for creating a button is as follows:
<input type="button" name="buttonname" onclick="functionname">
</form>
The following image displays a JavaScript button:
Rating:
Was this information helpful?
Other articles
- What are special inline characters?
- What are events?
- Note for creating multiple sets of radio button.
- What are comments?
- What is the document.open method?