Suppose, I've a FTP URL (ftp://xyz.org/file.zip
). If I type this in the browser manually, then hit enter, the browser will start to download the file.zip
and would ask me save it on harddisk.
My question is: Is it possible to write a script in JavaScript, which when run should download the file with all these options (separately)?
- in a new window?
- in a new tab in the same window?
- without opening a new window or tab?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…