What is the difference between an html input field tag of type button and an actual

lee_lee07770

New member
button tag? Why are there two ways of creating the button element in html?
(Using the <input> tag and the <button> tag?)
The reason I ask is because I have two buttons, both with onclick events doing the same thing.
The onclick event for the <input> tag element works perfectly,
but the onclick event for the <button> tag element occurs even when I click outside of the element!

Any thoughts?
 
Back
Top