javascript form 2 buttons different actions code example Example: two buttons in same form <input type="submit" name="button_1" value="Click me">