js submit button 2 types code example Example: two buttons in same form <input type="submit" name="button_1" value="Click me">