Why don’t you use an <input>
or <button>
element and just tweak it with CSS? Then it works without Javascript and is therefore more reliable.
More Related Contents:
- JavaScript code to stop form submission
- Best way to track onchange as-you-type in input type=”text”?
- Disable form auto submit on button click
- How to submit a form with JavaScript by clicking a link?
- HTML input file selection event not firing upon selecting the same file
- HTML input type=file, get the image before submitting the form
- Drop-down box dependent on the option selected in another drop-down box
- How to ensure a form field is submitted when it is disabled?
- How to prevent submitting the HTML form’s input field value if it empty
- How to prevent page from reloading after form submit – JQuery
- Decoding URL parameters with JavaScript
- Adding rows dynamically with jQuery
- Change the content of a div based on selection from dropdown menu
- HTML/JavaScript: Simple form validation on submit
- Appending form input value to action url as path
- jQuery Change event on an element – any way to retain previous value?
- HTML form with two submit buttons and two “target” attributes
- Getting an option text/value with JavaScript
- Dynamically creating a specific number of input form elements
- How to use JavaScript to change the form action [duplicate]
- Why does a FORM with one text INPUT submit on enter while one with two text INPUTs does not? [duplicate]
- Check if input is number or letter javascript
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- Get content of span
- form with no action and where enter does not reload page
- copying the value of a form’s file input field to another form’s input field
- A form’s “action” and “onsubmit”: Which executes first?
- Show/hide password onClick of button using Javascript only
- adding onclick event to dynamically added button?
- Form submit button will not submit when name of button is “submit” [duplicate]