Skip to content

Technique H83:Using the target attribute to open a new window on user request and indicating this in link text

Applicability

HTML

This technique relates to 3.2.5: Change on Request (Sufficient when used with Including pop-up windows using one of the following techniques: ).

Description

The objective of this technique is to avoid confusion that may be caused by the appearance of new windows that were not requested by the user. Suddenly opening new windows can disorient users or be missed completely by some. In HTML, the target attribute can be used to open a new window.

Use of the target attribute provides an unambiguously machine-readable indication that a new window will open. User agents can inform the user, and can also be configured not to open the new window. For those not using assistive technology, the indication would also be available from the link text.

Note that not using the target allows the user to decide whether a new window should be opened or not.

Examples

Other sources

No endorsement implied.

Tests

Procedure

  1. Activate each link in the document to check if it opens a new window.
  2. For each link that opens a new window, check that it uses the target attribute.
  3. Check that the link text contains information indicating that the link will open in a new window.

Expected Results

  • Checks 2 and 3 are true.
Back to Top