Change your code as
<a class="button" href="https://stackoverflow.com/questions/5800720/Cancel" onclick="return clearForm()">Cancel</a>
More Related Contents:
- Adding The Anchor Text As The Title Dynamicaly
- offsetting an html anchor to adjust for fixed header [duplicate]
- Smooth scrolling when clicking an anchor link
- How can you check for a #hash in a URL using JavaScript?
- How to scroll an HTML page to a given anchor
- How to handle anchor hash linking in AngularJS
- How do I programmatically click a link with javascript?
- How to get the anchor from the URL using jQuery?
- Use anchors with react-router
- offsetting an html anchor to adjust for fixed header [duplicate]
- jQuery Text to Link Script? [duplicate]
- How can I disable HREF if onclick is executed?
- Make anchor link go some pixels above where it’s linked to
- anchor jumping by using javascript
- Wrap link around
- HTML anchor link – href and onclick both?
- Opening new window in HTML for target=”_blank”
- How to get “raw” href contents in JavaScript
- javascript regex to extract anchor text and URL from anchor tags
- Override default behaviour for link (‘a’) objects in Javascript
- ScrollTo function in AngularJS
- Smooth scroll anchor links WITHOUT jQuery
- HTML anchor tag with Javascript onclick event
- How to use normal anchor links with react-router
- Auto-Scroll to next anchor at Mouse-wheel
- Why does babel rewrite imported function call to (0, fn)(…)?
- Sequelize model association won’t create a new column
- Convert blob URL to normal URL
- Manipulating innerHTML removes the event handler of a child element? [duplicate]
- Detecting WebP support