在输入类型文件上添加JavaScript警告可以防止在Internet Explorer中出现打开文件对话框
Adding a JavaScript alert on the input type file prevents the open file dialog from appearing in Internet Explorer
我有一个输入类型="file"。当我试图把onclick = "alert('test')";
,它显示在Internet Explorer和Firefox,但在Internet Explorer中,我按下OK按钮后,消息将消失,什么也没有发生,在Firefox中:消息消失后,打开文件对话框正常显示。JavaScript消息消失后,如何在Internet Explorer中显示打开文件对话框?
对于Internet Explorer,我使用的是Internet Explorer 9.
尝试添加一个返回值到…
onclick="alert('test');return true;"
相关文章:
- 在Internet Explorer中从二进制文件打开PDF
- 如何在不使用Internet Explorer的情况下从未挂起的HTML文件执行程序
- 如何提供保存文件而不是从internet explorer打印文件的选项
- Interent Explorer中的数据URI文件下载
- 如何使用JavaScript在Internet Explorer中将文件(DOCX或XLSX或PNG)读取为二进制流
- 在Internet Explorer中下载或显示XML文件
- 使用 jquery 上传文件适用于 Firefox,但不适用于 Internet Explorer
- 在 Internet Explorer 10 中将文本保存在本地文件中
- 我的XML文件没有被Google Chrome和Internet Explorer使用
- Jquery File Upload插件无法在Internet Explorer 11中拖放文件
- JavaScript选项卡式文件夹;无法在Internet Explorer中工作
- 使用Internet Explorer打开HTML文件
- Internet Explorer 11获取文件大小
- 在Internet Explorer中通过jQuery$ajax加载js文件
- 如何在Internet explorer中使用javascript删除不同域名下的cookie文件
- 适用于Internet Explorer的文件夹拖放
- Internet Explorer无法从下拉菜单中的xml文件中获取所有数据
- 在输入类型文件上添加JavaScript警告可以防止在Internet Explorer中出现打开文件对话框
- 使用explorer.exe打开文件夹窗口或使用node . js打开finder
- PDF文件无法在使用adobereader 10.0的Internet Explorer中打开-用户得到一个空白的灰色屏