Use the Modernizr approach: create the element, and check if the attribute is defined:
var a = document.createElement('a');
if (typeof a.download != "undefined") {
alert('has support');
}
More Related Contents:
- How can I select an element by name with jQuery?
- jQuery disable/enable submit button
- How To Get Font Size in HTML
- Why split the tag when writing it with document.write()?
- Can I load an entire HTML document into a document fragment in Internet Explorer?
- TypeError: p.easing[this.easing] is not a function
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- How to reset the bootstrap modal when it gets closed and open it fresh again?
- How to set a Header field on POST a form?
- HTML5 canvas ctx.fillText won’t do line breaks?
- Python library for rendering HTML and javascript [closed]
- Parse JavaScript with jsoup
- How do I disable the save password bubble in chrome using Javascript?
- How to Call a JS function using OnClick event [duplicate]
- Open android application from a web page
- How to detect when history.pushState and history.replaceState are used? [duplicate]
- How do I select the innermost element?
- Trigger CSS Animations in JavaScript
- Detect browser wrapped lines via javascript
- Large file upload with WebSocket
- Popstate on page’s load in Chrome
- HTML5 Dynamically create Canvas
- minimise the code since I am using the same code only the content in p tags changes and component AccordionHeader header changes
- Rotate div text after clicking on button using jquery and css
- How much data / information can we save / store in a QR code?
- Hot to get incomplete datetime-local input values
- html5/Javascript – How to get the Selected folder name?
- Do duplicate ID values screw up jQuery selectors?
- Split text into pages and present separately (HTML5)
- Can you have multiple lines in an element?