Crownpeak (Retired)

Do not use "onmousedown" without "onkeydown"

Why is this important?

The onmousedown behavior is used to provide a style change on an element upon clicking on mouse button. We need to consider that there are users who cannot use a mouse and are using a keyboard instead. In this instance the website should have a corresponding style change onkeydown to provide a similar experience for keyboard users.

How can I resolve this issue?

Add onkeydown when you use onmousedwon

What topics do this checkpoint affect?

  • Accessibility  (WCAG 2.1 Level A, 2.1.1)

Can you explain how this checkpoint works?

This checkpoint examines the entire HTML source code and reports if the onmousedown event is used without an onkeydown event


Labels (1)

Can't find what you are looking for?

Find Answers

Search our DQM Forum to find answers to questions asked by other DQM users.

Ask a Question

No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.

Ask a Question