W3C home > Mailing lists > Public > public-html@w3.org > January 2013

Proposed anchor target attribute _download

From: Abram Wiebe <ethanpet113@gmail.com>
Date: Wed, 02 Jan 2013 18:34:24 +0000
Message-Id: <0F37E6DC-27B8-40BE-8AA8-3F11EB8DAC68@gmail.com>
To: public-html@w3.org
Several web-browsers try to render content such as images when a hyperlink points to an image resource, even when the intent of the site author was for it to be downloaded by the browser, this often leads to instructions such as: "Left click the link and chose save as target"(IE), which while understood to mean "save linked file as" is:
1. Inconsistent across browsers.
2. Inconvenient, when it should always be that said link results in a download, rather than the browser displaying the file.

Therefore I propose adding 
<a href="imageOrOtherResource.jpg" target="_download">
To indicate that the browser should download the file only and not attempt to display it.
Received on Thursday, 3 January 2013 09:00:41 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:30 UTC