user3210615
user3210615

Reputation: 17

Command to download video files with firefox

<a href="http://example.com/example.mp4" download>download me</a>

If you click on the link it triggers a download because of the download attribute, but i need it as an command, some thing like

view-source:http://example.com

so in this case i would need

download:http://example.com/example.mp4

(it does not work of course)

I hope you get my idea.

Upvotes: 2

Views: 445

Answers (1)

Brock Amhurst
Brock Amhurst

Reputation: 497

There is no such command you can enter in the browser to accomplish what you're trying to do. If what you're looking for is a way to download files for which you have the URL but without having to create a hyperlink, then SaveTarget.As might suit your needs. You just have to paste the URL, and it will create a hyperlink for you.

Note: I am the owner of SaveTarget.As.

If instead you have a website where you want to invoke a download without the user having to click on the button, you can use the jQuery or JavaScript .click() method to accomplish this. Here's some more info on that: HTML DOM click() Method

Upvotes: 1

Related Questions