HTML <button> Tag with the 'formtarget' Attribute
<form> <!-- ...form contents... --> <button type="submit" formaction="http://www.htmlcodes.ws/resources/html-forms-action.cfm" formtarget="_blank"> Submit </button> </form>
In the above example we add the
formtarget attribute to a button control.
formtarget attribute allows you to specify the browsing context to load the destination indicated in the
- Any string with at least one character that does not start with a
U+005F LOW LINEcharacter.
The above values have different meanings based on whether the page is sandboxed or not. See the W3C website for more information on these values and their implications.
<button> element creates a button control in an HTML document.
Any contents of the
<button> element appears on the button.
onclick attribute) to make the button actually do something.