You might try adding the element to the DOM before triggering the click:
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
This worked for me in Firefox 34
jsfiddle: http://jsfiddle.net/8wos7cf8/7/
More Related Contents:
- ReferenceError: event is not defined error in Firefox
- HTML5 drag and drop folder detection in firefox. Is it even possible?
- Web browser: Hide mouse cursor [duplicate]
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- How to send data to the server via Ajax?
- How to force browser to show image 3 inches wide?
- Making a quiz in HTML and Javascript [closed]
- HTML Form Submit pass array to PHP [closed]
- Add/Remove Class of Nav Objects on Page Scroll
- How can I select an element by name with jQuery?
- How to save an image to localStorage and display it on the next page?
- jQuery disable/enable submit button
- TypeError: p.easing[this.easing] is not a function
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- Make function wait until element exists
- How to reset the bootstrap modal when it gets closed and open it fresh again?
- How to convert html table to excel with multiple sheet?
- Jquery .show() not revealing a div with visibility of hidden
- How to check if input file is empty in jQuery
- Fill available spaces between labels with dots or hyphens
- How to detect a click inside of an iframe (cross-domain)? Aka prevent click fraud
- Why do multiple `.appendTo` calls on a newly created jQuery element only append it once?
- How to change only text node in element [duplicate]
- How do you limit options selected in a html select box?
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- Detect browser wrapped lines via javascript
- How to Bootstrap navbar static to fixed on scroll?
- How to highlight a part part of an Input text field in HTML using Javascript or JQuery
- Test if an element can contain text
- Geolocation closest location(lat, long) from my position