![](/img/trans.png)
[英]Force hyperlink in local html file to open associated application instead of downloading
[英]How do I force an html file to open in the browser instead of downloading? (Classic Google Sites)
我正在使用经典的Google网站,并上传了html文件。 但是,当我单击链接而不是直接在新选项卡上打开时,它将尝试下载它。 因此,如何通过单击链接直接在浏览器中打开它来强制执行此操作?
链接位置:
http://www.rodriguesloures.com/econometrics.html?attredirects=0&d=1
码:
<div style="vertical-align:middle"><img alt="" src="https://sites.google.com/site/arloures/julia-language.png" style="vertical-align:middle" title="julia" width="25" height="25" border="0"> <a href="https://sites.google.com/site/arloures/econometrics.html?attredirects=0&d=1" target="_blank">Applied Econometrics using Julia</a></div>
感谢您的反馈!
亚历山大(Alexandre)
您可能使用PANDOC生成了html文件,并将其作为页面附件上传到了您的网站(使用“ Add file
链接)。 Google会将所有附件视为只能下载的文件。
您可以尝试做的是:
<html>
按钮,“ 编辑HTML”弹出窗口应立即打开。 现在,指向此页面的所有链接将打开您的HTML而不下载
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.