To target=_blank or not to target=_blank, that is the question!

前端 未结 8 1901
野的像风
野的像风 2021-02-03 21:58

Should links to external sites set target=_blank? E.g. I am on www.acme.net and have a link to www.otherplace.net, should that link be:

8条回答
  •  感情败类
    2021-02-03 22:25

    I think it totally depends on your use case.

    If you are opening a site in another domain and need to keep your site open, and I think in most cases you do, then use target='_blank'.

    As a user, I find it annoying when I click on a link to another domain and it moves me from the original domain. Of course, using ctrl+click in most browsers is a way to defend against this - but why make the user do more work?

提交回复
热议问题