You are here: Reference > CSS > properties > browser specific extensions > -moz-user-input

-moz-user-input property

Browser support:
Specifies whether the element can have the input focus.
Typically used for input elements to enable or disable them. This property is the same as the user-input property in the CSS3 declaration.
Use the READONLY attribute instead.
JavaScript page for this property: MozUserInput. You can find other example(s) there.

Possible values:

 One of the following values: 
auto
Default. Use the element's default behavior for user-input behavior.
disabled
Element is disabled and will not respond to user input.
enabled
Element can respond to user input.
inherit
Takes the value of this property from the computed style of the parent element.
none
The element is considered to be neither enabled nor disabled.
Default: auto.

Example HTML code 1:

This example illustrates the use of the -moz-user-input property:
<head>
    <style>
        .example {
            -moz-user-input: disabled;
        }
    </style>
</head>
<body>
    <textarea class="example">The user is not able to change this text.</textarea>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content