我对此有点陌生。但由于 Internet Explorer 的生命周期即将结束,我目前正在重新设计一个内部使用的旧 HTML 页面,用于通过网络共享访问文件。在 IE 中,我们能够使用用户当前的默认程序打开通过 HTML 链接的网络共享上的文件。
这是通过定义链接并添加 target="_blank" 来完成的。然后 IE 在该人的计算机上本地打开该链接。
现在,当我们切换到边缘时,它会在新选项卡或窗口中打开。有没有办法让 PDF 文件、Word 文件或其他文件使用当前的默认应用程序打开?
例如,您可以调用该程序并使用它来打开某个文件吗?
I'm kind of new to this. But I'm currently reworking an old HTML page used internally to access files over a network share due to Internet Explorer running towards end of life. In IE we were able to open files on a network share linked through the HTML with the users current default program.
This was accomplished by defining the link and adding target="_blank". IE then opened the link locally on the persons computer.
Now when we switch to edge it opens in a new tab or window. Is there any way to make PDF files, Word files or others open with their current default application?
Could you for instance call the program and use it to open a certain file?
发布评论