Add this in your input element
<input action="action" onclick="window.history.go(-1); return false;" type="submit" value="Cancel" />
Related Posts:
- How to make JavaScript execute after page load?
- How to make JavaScript execute after page load?
- Show/hide ‘div’ using JavaScript
- How to make JavaScript execute after page load?
- How can I capture the right-click event in JavaScript?
- Edit webpage with javascript trick – how to “unedit”?
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- What does do?
- Is it possible to write data to file using only JavaScript?
- Can I have an onclick effect in CSS?
- jQuery.click() vs onClick
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- What does do?
- Is it possible to write data to file using only JavaScript?
- Set cookie and get cookie with JavaScript
- Which is better: or
- Why is my Javascript not working?
- How to check View Source in Mobile Browsers (Both Android && Feature Phone)
- How can I get the values of data attributes in JavaScript code?
- Javascript: getElementById vs getElementsById (both works on different pages)
- mailto using javascript
- mailto using javascript
- Mailto using Javascript?
- How to change css property using javascript
- javascript close current window
- I am trying to make a simple toggle button in javascript
- How to call a JavaScript function within an HTML body
- How to save user input into a variable in HTML and JavaScript
- Hiding a button in Javascript
- Get HTML code using JavaScript with a URL
- Calculate percentage Javascript
- How to display image with JavaScript?
- Resize image with javascript canvas (smoothly)
- JavaScript function onhover in
- Check if an element contains a class in JavaScript?
- Hide element by class in pure Javascript
- How to play a mp3 using Javascript? [duplicate]
- mailto using javascript
- Function not defined javascript
- How to submit a form with JavaScript by clicking a link?
- How to call a REST web service API from JavaScript?
- What is gZip compression?
- Check a radio button with javascript
- Is it possible to append to innerHTML without destroying descendants’ event listeners?
- AppendChild() is not a function javascript
- How can I change an element’s class with JavaScript?
- JavaScript: Get image dimensions
- Why write script type=”text/javascript” when the mime type is set by the server?
- How to select an input element by value using javascript?
- JavaScript button onclick not working
- JavaScript button onclick not working
- javascript window.location in new tab
- How to create a hidden in JavaScript?
- How to get scrollbar position with Javascript?
- How do I programmatically set the value of a select box element using JavaScript?
- How to access and download a file from a server using HTML 5
- Why onbeforeunload event is not firing
- How to make HTML element resizable using pure Javascript?
- How do I clear the content of a div using JavaScript?
- Include another HTML file in a HTML file
- How do I make an image smaller with CSS?
- What is sr-only in Bootstrap 3?
- How to put a text beside the image?
- Bootstrap 4 images thumbnail classes
- Multiple radio button groups in one form
- Relative path in HTML
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- How to move text up using CSS when nothing is working
- How to center content in a Bootstrap column?
- onClick to get the ID of the clicked button
- HTML text input allow only numeric input
- How to change the buttons text using javascript
- HTML5 Validation Error: body start tag seen but an element of the same type was already open
- How to use in jQuery :not and hasClass() to get a specific element without a class
- Crop the image using JavaScript
- Adjust width and height of iframe to fit with content in it
- Fit background image to div
- Create a simple 10 second countdown
- Generating a Random Number for HTML
- HTML Links are not working
- How to extract svg as file from web page
- Making an image act like a button
- How can I align text directly beneath an image?
- HTML vs SHTML vs PHTML
- Change background color of iframe issue
- jQuery find element by data attribute value
- How to use aria-expanded=”true” to change a css property
- Keep HTML format when switching from Visual to HTML editor
- Will my WordPress site become vulnerable to Cross-Site Scripting (XSS) if I allow img tags in the comments area?
- Add HTML to single post tag
- WordPress “Page not found error” when I edit a page
- How do I put a wordpress blog into my html site?
- New to CMS – WP functionality. overkill or just right?
- Create custom markup to use in posts?
- Directorist – Dropdown doesn’t open
- Where to find the html for WordPress site? [closed]
- Query WordPress Database and Post HTML Table
- theme or plugin or server is outputting html before the init hook fires, how is it possible to prevent this
- Interactive maps in wordpress
- How to Know If I’ve Correctly Inserted Alt Attributes Into HTML