How to call a file save dialog in browser?

Input:
  • domain site.com
  • 2 js variables file_name and file_url
  • the variable file_name contains the name of the file name.mp4
  • variable file_url contains the link to the domain another-site.com

Due to the fact that the link leads to another domain - the usual means here can not cope.
Question - how to implement a save file dialog with the desired name?
Important - do not view file in browser, if this video, namely the preservation
April 3rd 20 at 17:30
1 answer
April 3rd 20 at 17:32
Input:
domain site.com
2 js variables file_name and file_url
the variable file_name contains the name of the file name.mp4
file_url variable contains a reference to the domain another-site.com


And then what? Well, obviously these two variables.
Is there any button or any event that is?
The button can be done, the question of the mechanism of dialog - Ewell19 commented on April 3rd 20 at 17:35
@Ewell19, to cause a variety of ways, one of them You in the comments pointed out Nikolay Smirnov.
You task narrow please, none of Your ideas here will not steal. - antonietta commented on April 3rd 20 at 17:38

Find more questions by tags JavaScript