简体   繁体   中英

How to Automatically Click Save on a Save As Dialog Box?

I Have a Download Button or a link when your click on it, it shows a Save As Dialog box to save the file my question is, is there anyway to atomically click save on that button, so when the user clicks it, it saves to their hard Drive?

Assuming you're talking about a page viewed in a web browser, no - there's no way to automatically click the "Save" button for the user.

Allowing a webpage to arbitrarily save files to the user's hard drive with no user interaction would be a huge security problem.


That being said, there are ways to encourage the browser to open/view the file directly instead of asking the user to save it, as well as options for a page to save some data locally in local storage .

幸运的是,没有办法-安全原因。

by using macros like macro scheduler one can automate the process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM