You can specify the HTML5 download attribute in your <a> tag.
<a href="http://example.com/archive.zip" download>Export</a>
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
More Related Contents:
- JavaScript: How to find out if the user browser is Chrome?
- Chrome 65 blocks cross-origin . Client-side workaround to force download?
- Console.log showing only the updated version of the object printed
- How to simulate key presses or a click with JavaScript?
- Cross-origin data in HTML5 canvas
- JavaScript: Is there a way to get Chrome to break on all errors?
- clear javascript console in Google Chrome
- Can a site invoke a browser extension?
- How can a Chrome extension save many files to a user-specified directory?
- Open Safari / Google Chrome developer tools programmatically from JavaScript
- How do I disable the save password bubble in chrome using Javascript?
- Event onBrowserClose for Google Chrome Extension?
- Console shows error about Content Security policy and lots of failed GET requests
- Chrome sets cursor to text while dragging, why?
- Add to browser favorites/bookmarks from JavaScript but for all browsers (mine doesn’t work in Chrome)?
- Accessing Current Tab DOM Object from “popup.html”?
- Communicating between a Chrome packaged app and a Chrome extension?
- How to inject CSS into webpage through Chrome extension?
- How to get list of network requests done by HTML
- Proper way to reset a GIF animation with display:none on Chrome
- Chrome and IE sorts JSON Object automatically, how to disable this?
- jQuery in Chrome returns “block” instead of “inline”
- How can I capture all network requests and full response data when loading a page in Chrome?
- forEach method of Node.childNodes?
- Does chrome supports document.selection?
- How to window.open with a toolbar in Google Chrome?
- Popstate on page’s load in Chrome
- Keycode is always zero in Chrome for Android
- Record voice from IPhone using HTML5
- Chrome developer tools do not show all JavaScript files any more