是否可以使用 Javascript 捕获浏览器的文件打开/保存对话框事件 [英] Is it possible to catch browser's File Open/Save dialog event using Javascript

查看:19
本文介绍了是否可以使用 Javascript 捕获浏览器的文件打开/保存对话框事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Javascript可以监听浏览器的文件打开/保存对话框事件.当我收到保存文件对话框现在已打开的通知时,我想执行一个操作.具体来说,我想在对话框打开时隐藏加载微调器(但这很可能是任何其他操作)

Using Javascript is it possible to listen for browser's file open/save dialog box event. I want to perform an action when I am notified that the save file dialog box has opened now. Specifically I want to hide a loading spinner when dialog box opens (but this could very well be any other action )

我相信我可以为我创建的对话框做到这一点,不确定是否可以为浏览器的标准对话框做到这一点.

I believe I can do that for a dialog box that I create, not sure if it can be done for the browser's standard dialog box.

对此的任何指示都会非常有帮助.

Any pointers for that would be really helpful.

推荐答案

不,没有针对此的事件.

No, there is no event for that.

这篇关于是否可以使用 Javascript 捕获浏览器的文件打开/保存对话框事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆