Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Introduce new rule against use of target="_blank" on links #26

Open
khiga8 opened this issue Mar 17, 2022 · 0 comments
Open

Idea: Introduce new rule against use of target="_blank" on links #26

khiga8 opened this issue Mar 17, 2022 · 0 comments
Labels
good first issue Good for newcomers needs-discussion Further information is requested

Comments

@khiga8
Copy link
Collaborator

khiga8 commented Mar 17, 2022

target="_blank" is frequently used on external links. However, this can be disorienting for many groups of users who don't expect to be in a new window. Using target="_blank" requires extra considerations which can be tricky to enforce, so it may be best to avoid them altogether.

From @jscholes in Slack thread:

TL;DR: don't force links to open in a new tab/window. When you force it, users can not opt out in any browser I know of. However, when you give them the choice from the start, users can make their own decision as to: current window, new tab, or new entire window.
If links are forced to open in a new tab/window, you have to surface that fact upfront, with "(opens in new tab)" and icons everywhere. Personally, while I see the utility of this, it makes many websites cluttered and a nightmare to read, particularly when you have new-opener links in the middle of text paragraphs. And, can all be avoided by just not doing it in the first place.

Resources

@khiga8 khiga8 added good first issue Good for newcomers needs-discussion Further information is requested labels Mar 17, 2022
@khiga8 khiga8 changed the title Introduce new rule against use of target="_blank" on links Idea: Introduce new rule against use of target="_blank" on links Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers needs-discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant