user3727204
user3727204

Reputation: 65

Download attribute not working in Firefox but working in chrome

This fiddle is not working in firefox but working in chrome.

I have tried using this :

<p>Click on the w3schools logo to download the image:<p>

<a href="http://www.w3schools.com/images/myw3schoolsimage.jpg" download="aa">
  <img border="0" src="http://www.w3schools.com/images/myw3schoolsimage.jpg" alt="W3Schools" width="104" height="142">
    </a>

<p><b>Note:</b> The download attribute is not supported in IE, Safari or Opera version 12 (and earlier).</p>

Link to fiddle : JsFiddle

Upvotes: 5

Views: 13996

Answers (1)

HadesDX
HadesDX

Reputation: 168

first of all in firefox, you cant mark an a element to download from another domain so an a like this wont work

    <a href="http://www.w3schools.com/images/myw3schoolsimage.jpg" download>

but this other will work on firefox

    <a href="img/book.png" download>

Firefox need to be from the same domain, so a relative url, will work fine.

:) goog luck

Upvotes: 10

Related Questions