generic <input> button

To attach a generic button without any default behaviour to a form, use the <input> element with the type attribute set to "button".

Notes
All the <input> button attributes (disabled, name and value) apply to this button.
More than one generic button can be attached to the same <form> element. Name attribute is used to differentiate them.
To add specific behaviour to an <input> button, use javascript or another client side javascript programming language is used.
Generic <input> buttons do not add name=value pairs to the forms data sent by the browser, but submit buttons do.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +