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

前端 未结 8 1885
野的像风
野的像风 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:26

    Just don't do it. Using target attributes with links presents complications for assistive technology users who may not know another tab has opened. It becomes a bad experience for these users when the back button does not work in the new tab to take them back to the page they started on. This practice can also be disorienting to people with cognitive disorders. It is best to let users decide where links will open.

提交回复
热议问题