Push buttons and default action
Normal, pressed, focused, disabled, and default action. The default outline is separate from keyboard focus.
Small working examples for the Windows 95 control families and common dialog patterns. Every example is a self-contained HTML file: copy it, open it locally, and adapt only the controls you need.
These are original browser implementations. Native Open, Save, Print and rich-text editing use browser adapters with explicit limits. They do not reproduce every Windows API or later common control.
38 examples
The preview is its own page. Open it separately to test full keyboard and dialog behavior.
Normal, pressed, focused, disabled, and default action. The default outline is separate from keyboard focus.
Off/on, pressed feedback, focus, and disabled on state.
Unchecked, checked, mixed aggregate, focused, disabled checked.
One selected option, focus, and disabled option. The legend labels the choice as a whole.
Editable, read-only (selectable), disabled, password, and invalid with a connected explanation.
Multiple lines, selection, scrolling, focus and resize.
Editable, increment/decrement, minimum/maximum and invalid typed values.
Closed/open, selected option, disabled option and disabled control.
Free text, filtered suggestions, active suggestion distinct from committed value, empty results, closed popup.
Selected row, focus, scroll and disabled item. Selection does not activate the document.
Discontiguous selections, range selection and empty selection.
Etched group, legend interrupting the border, labels, enabled and disabled groups.
Horizontal/vertical, value, bounds, focus and disabled.
Determinate, indeterminate, complete and canceled.
Two axes, thumb, track, focus and resizable viewport.
Delayed hover/focus hint, Escape dismissal, supplemental status text.
Bounded pane widths, pointer capture, keyboard focus and canceled drag.
Selected tab, inactive tabs, focus, persistent values in hidden panels.
Commands, toggles, separator, disabled command and one Tab stop.
Expanded/collapsed branches, visible focus and single selection; children retain their state when a parent closes.
Details/icons, selected item, focus and ascending/descending sort; selection survives reordering.
Sort direction, bounded width, pointer resizing, focus and keyboard resizing.
Menu-bar mode, dropdown, delayed pointer submenu, disabled item, check mark, exclusive radio mark and numbered inline MRU group.
Pointer and keyboard invocation, disabled command, bounded horizontal placement and focus restoration.
Closed/open modal, default action, validation, cancellation, inert background and restored focus.
Open without blocking the document, repeated search, wraparound, match-case and not found.
Cross-page draft, Apply enabled only when changed, OK commit/close, Cancel rollback since last Apply, explicit caption Close decision.
Question, destructive action, safe initial focus/default and explicit outcome.
First/middle/final step, required input, preserved draft while going Back, Finish commit and Cancel discard.
Active caption, system menu, normal/minimized/maximized/restored bounds, close/reopen, move/size and cancellation.
Swatches, RGB values, preview draft, committed well, validation and cancel rollback.
Family, size, bold/italic, live draft sample, commit and cancel.
Recorded chord, empty value, canceled capture and invalid chord.
Static initial image, explicit play/stop and accessible description.
No selection, chosen file, successful read, preview limit and read failure. Canceling the host picker keeps the existing document.
Edited content/name and a real UTF-8 text download request.
Screen/print layouts and print-dialog lifecycle.
Editable rich content, selection, multiline input, browser clipboard and undo.
MIT · Copyright (c) 2026 Stephen Lavelle. No network requests are needed to run the examples. Font and native-popup rendering follow your browser and system.