CommandHelper

CommandHelper

46.5k Downloads

MethodScript.com Accessibility - Ensure that links or controls that open new windows or frames do not open without a warning

LeigerGaming opened this issue ยท 0 comments

commented

If I understand correctly, the issue here is that it opens in a new tab when the user isn't expecting it to do so. So we should either remove the target="_blank" or mention in the link text that it opens in a new window.

<a href="https://github.com/EngineHub/CommandHelper/edit/master/src/main/resources/siteDeploy/VersionFrontPage" target="_blank" rel="noopener noreferrer">Edit this page yourself, then submit a pull request.</a>

From the referenced website:

Developers should avoid creating links or other controls opening new windows without either indicating that fact to users or allowing them to control the focus change. Exceptions are made if the new window comes in the form of a dialog, one that is either predictable by its context (such as a "Print this page" link that triggers the browser's Print dialog), or is implemented in an accessible manner (such as a "Delete" image link that triggers a simple JavaScript alert with an "Are you sure you want to delete this?" prompt).

References: