'type' determines the functionality of the 'button' element : type button « Form « HTML / CSS






'type' determines the functionality of the 'button' element

    
<HTML>
<BODY>
<button id="myButton" type="button" onclick="alert('hello!');">Button Text</button>
</BODY>
</HTML>  

    
      
      








Related examples in the same category