An <input> tag with a type="button"
attribute creates a clickable button.
These buttons are commonly used to execute JavaScript.
An <input> element of type button.
Clicking the button displays an alert box.
<input type="button"
value="Start calculations"
onclick="alert('Calculations have been started!')">
The <input type="button">
tag creates a clickable button.
Input element of this type are mostly used to execute JavaScript functions.
<input type="button">
Here is when type="button"
support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
1.0 | Aug 1995 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |