I have an html page which contains link to open pdf file. however this link opens in adobe reader when i click on it. I have set target property to blank. but it doesn't work either. I want to open this pdf file in new tab in the same window.
target="_blank"
是正确的方法 - 但如果它在新标签页中打开,则新窗口或adobe reader取决于用户浏览器设置,不能(也不应该!)由您控制。
With my websites, I use:
target="_tab"
as most browsers are now aware that people want things to open in new tabs instead of new windows. I can confirm that this works for me in the following web browsers:
Opera
, Chrome
, Flock
, Firefox
and Maxthon
.
However, it still does not work in any version of Internet Explorer, including their new beta version: 9. Apparently it comes down to "User Preferences" with Internet Explorer.
Determining which application opens a particular file format is currently, and should always be left up to the user, not the developer*.
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.