css.properties

user-select

The user-select property specifies whether text can be selected by the user.

Formal Syntax

user-select = auto | text | none | contain | all

See specification

JavaScript Access

// Access via element.style element.style.userSelect = "auto";

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
user-select5469379
all5311679
auto11212
none121212
text11212

Related Properties