iOS tel: and mailto: links only work with target=“_blank”

£可爱£侵袭症+ 提交于 2019-12-04 20:56:49

This is a bit of a late answer, if you can even consider this an answer at all, but I've recently encountered a variation of this and made some progress.

Basically, it seems you do need target="_blank" for mailto links for them to work consistently in iOS/Safari (across recent versions).

What about Android? After some testing - you can have target="_blank" for Android/Chrome as well, as long as you do NOT have rel="noopener" next to them. Why?! Who knows? Either nobody bothered documenting this or my googling powers have failed me.

Test it for your own sanity: https://jsfiddle.net/f31psnhx/2/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!