CSS User selection sample


CSS, Internet Explorer 10
CSS User selection
Web
en-US
12/19/2012
View sample

Description

The -ms-user-select property is a new Cascading Style Sheets (CSS) property that enables app and web developers to control where users can select text within their Windows apps that use JavaScript or webpages. The user-select property is not currently part of any World Wide Web Consortium (W3C) CSS specification. It was originally proposed in the User Interface for CSS3 module, but this module has since been superseded by CSS3 Basic User Interface Module, which does not contain the user-select property. Other major browsers support their own prefixed versions of this property. There are minor differences between the three implementations, so be sure to test your application across browsers.

See also

Reference
-ms-user-select property

Conceptual
Internet Explorer 10 Developer Guide: CSS Specifying selectable text

Internet Explorer Test Drive
User-Select

IEBlog
Controlling Selection with CSS User-Select

Further information

The Internet Explorer Samples Gallery contains a variety of code samples that demonstrate new features available in Internet Explorer. These downloadable samples are provided as compressed ZIP files that contain the HTML, JavaScript, CSS, and image resources for the sample, along with the license agreement and sample description metadata. After you’ve downloaded and unzipped the compressed files, the sample files can be found in the following location:
(unzipped folder)\HTML,JavaScript\Website \(Sample)
This sample is provided as-is in order to indicate or demonstrate the functionality of the feature APIs for Internet Explorer 10. We appreciate your comments and questions on this sample!
For download info, visit Internet Explorer downloads.