Add this in your input element
<input
action="action"
onclick="window.history.go(-1); return false;"
type="submit"
value="Cancel"
/>
More Related Contents:
- How can I tell if a DOM element is visible in the current viewport?
- Communication between tabs or windows
- How to get a word under cursor using JavaScript?
- How to open a PDF file in an ?
- React onClick function fires on render
- HTML input file selection event not firing upon selecting the same file
- Want to add “addEventListener” on multiple elements with same class [duplicate]
- Pass mouse events through absolutely-positioned element
- Why should y.innerHTML = x.innerHTML; be avoided?
- javascript onclick event over flash object
- adding multiple event listeners to one element
- javascript get x and y coordinates on mouse click
- Ignore mouse interaction on overlay image
- Detect if browser is running on an Android or iOS device
- Missing click event for inside element on firefox
- Call two functions from same onclick [duplicate]
- Handling “onclick” event with pure JavaScript
- Setting minimum size limit for a window minimization of browser?
- Change Button color onClick
- How can I stop an onclick event from firing for parent element when child is clicked?
- How to add click event to an element?
- How can I know whether refresh button or browser back button is clicked in Firefox? [duplicate]
- Use JavaScript to intercept all document link clicks
- How to execute code in a javascript append
- How to reduce the length of a video using JavaScript? [closed]
- HTML5 Video autoplay with sound unmuted
- onclick calling hide-div function not working
- How do I dynamically adjust css stylesheet based on browser width?
- Are dynamically inserted tags meant to work?
- Display Spreadsheet Data to HTML Table