This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

تلاش سپورٹ

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

مزید سیکھیں

How can I download a file inside a link without right-clicking it ("save target as")?

  • 4 جواب دیں
  • 1 میں یہ مسئلہ ہے
  • 4 دیکھیں
  • آخری جواب بذریعہ edvardgrieg11

more options

Hi there! Does anyone know if there's any way I can download a file hosted on a link (e.g., www.ff.org/test.pdf ) without going to config and changing my preferences? I want FF to keep opening media (like pdf and mp3) on the tab when I clik on it, as a general rule. But sometimes I want to be able to download a file, and I can't right click it because all I have is the adress someone gave me. If I type that adress and hit enter, FF will open the file in a tab.

Is there any command I can pass, say, on the adress bar that will make me download the file instead of opening it in a FF tab (like download:www.ff.org/test.pdf)? Will I always have to change my preferences to be able to download a file instead of opening it when I type the link on the adress bar?

Thanks!

Hi there! Does anyone know if there's any way I can download a file hosted on a link (e.g., www.ff.org/test.pdf ) without going to config and changing my preferences? I want FF to keep opening media (like pdf and mp3) on the tab when I clik on it, as a general rule. But sometimes I want to be able to download a file, and I can't right click it because all I have is the adress someone gave me. If I type that adress and hit enter, FF will open the file in a tab. Is there any command I can pass, say, on the adress bar that will make me download the file instead of opening it in a FF tab (like download:www.ff.org/test.pdf)? Will I always have to change my preferences to be able to download a file instead of opening it when I type the link on the adress bar? Thanks!

منتخب شدہ حل

That is supposed to be a keyword bookmark so you need to add a keyword and invoke the bookmark by typing the keyword and a space and paste the link after it. Make sure that the link includes the protocol (http://) That creates a browser page where you can right-click the link to save the file.

data:text/html,<a href="http://www.education.gov.yk.ca/pdf/pdf-test.pdf">http://www.education.gov.yk.ca/pdf/pdf-test.pdf</a>
اس جواب کو سیاق و سباق میں پڑھیں 👍 2

تمام جوابات (4)

more options

You can use a bookmarklet like this to get a link that you can right-click

data:text/html,<a href="%s" >%S%</a>

cor-el کی جانب سے میں ترمیمکی گئ

more options

Thanks cor-el!! But I fear I'm doing something wrong here, I supposed I should substitute %S% for the string adress (e.g., www.education.gov.yk.ca/pdf/pdf-test.pdf , would make it data:text/html,<a href="%s" >www.education.gov.yk.ca/pdf/pdf-test.pdf</a> ) this does indeed generate a link. But, when I right-click this link the option to "save link as" doesn't show (I don't know why). What am I missing?

more options

منتخب شدہ حل

That is supposed to be a keyword bookmark so you need to add a keyword and invoke the bookmark by typing the keyword and a space and paste the link after it. Make sure that the link includes the protocol (http://) That creates a browser page where you can right-click the link to save the file.

data:text/html,<a href="http://www.education.gov.yk.ca/pdf/pdf-test.pdf">http://www.education.gov.yk.ca/pdf/pdf-test.pdf</a>

cor-el کی جانب سے میں ترمیمکی گئ

more options

Brilliant!! Thanks a lot for the walkthrough, I'm trying to learn code but still a far way from actually doing any learning...