Widgets

How to Add a Mouse Test to Your Website

LK Forge · 4 min read · Updated September 2026

You can add a free mouse test to any website, blog, or support page with a single line of code — no sign-up, no plugin, and no script to install. Visitors check every mouse button and the scroll wheel, catch a double-click fault from a worn switch, and measure their polling rate in Hz. This guide covers the fastest way to embed the Mouse Test and where it works.

The quickest way: paste one embed snippet

An embed is just an <iframe> that loads the test from lkforge.com, plus a small credit line. Copy this into your page’s HTML where you want the test to appear:

<iframe src="https://lkforge.com/embed/mouse-test/"
        width="100%" height="620" loading="lazy"
        style="border:0;max-width:560px"
        title="Mouse Test by LK Forge"></iframe>
<p><a href="https://lkforge.com/tools/mouse-test/">Mouse Test</a>
   by <a href="https://lkforge.com/">LK Forge</a></p>

The <iframe> is the live test; the <p> underneath is a plain credit link. Keep that line — the visible link is what keeps the widget free to embed. You can also copy this exact code straight from the “Add This Mouse Test to Your Website” section on the tool page.

Why embed a mouse test

A mouse diagnostic is exactly what readers search for when a mouse misbehaves, which makes it a useful, sticky addition to:

  • Tech support and how-to pages — "is my mouse double-clicking?" is a common problem; a live test answers it on the page.
  • Peripheral reviews and marketplaces — let readers verify buttons, scroll and polling rate on a new or used mouse.
  • Gaming blogs — polling rate and button response are things players genuinely care about.

Where it works

Because it is a standard iframe, the embed works anywhere you can add HTML:

  • WordPress: add a Custom HTML block and paste the snippet.
  • Squarespace: use a Code / Embed block.
  • Wix: add an Embed HTML / iframe element.
  • Ghost: insert an HTML card.
  • Notion: paste the /embed/mouse-test/ URL and choose "Create embed".
  • Plain HTML, an intranet, or a support page: paste the snippet straight into the markup.

That’s the whole job. Copy the embed code from the Mouse Test page and paste it wherever a support page, a hardware review, or a gaming blog needs an instant mouse check.

Grab the embed code from the 'Add This Mouse Test to Your Website' section on the tool page — free, no sign-up.

Open the Mouse Test

Frequently asked questions

Is embedding the mouse test free?
Yes. The mouse test is free to embed on any site, with no account, no API key and no usage limits. It runs entirely in your visitor’s own browser, so there is no server cost — we only ask that you keep the small "Mouse Test by LK Forge" credit line that comes with the embed code.
What does the mouse test check?
It checks every mouse button — left, right, middle (the wheel) and the side back and forward buttons — by lighting each one up when pressed, confirms the scroll wheel registers up and down, and estimates the mouse polling rate in hertz. It also watches for double-click faults: two presses of the same button faster than a human can click on purpose, the signature of a worn switch.
How does it detect a double-click problem?
A failing switch often fires twice from a single physical click, known as click chatter. The test times the gap between presses of the same button and flags any pair closer than about 60 milliseconds. A visitor single-clicks slowly a few dozen times and watches the suspected-fault counter — on a healthy mouse it stays at zero.
Does it work with a laptop trackpad?
Yes, though a trackpad usually exposes only left and right buttons and no separate scroll wheel or side buttons, and its polling rate reads differently from a dedicated mouse. For a full test — side buttons, wheel and polling rate — a standard mouse gives the most complete picture.
Where can I embed it — WordPress, Wix, Squarespace, Notion?
Anywhere you can add HTML, because it is a standard iframe. In WordPress use a Custom HTML block; in Squarespace a Code/Embed block; in Wix an Embed HTML element; in Ghost an HTML card; in Notion paste the /embed/mouse-test/ URL as an embed. On a plain HTML page or an intranet, paste the snippet straight into the markup.