Style caretColor Property
Style caretColor Property
The caretColor property is used to specify color of the cursor in textareas, inputs, or any element that is editable. The cursor is actually caret.
Syntax:-
Its syntax is:- object.style.caretColor OR object.style.caretColor = auto|color|initial|inherit
Return:-
Its return is:- string having caret color of an element
Further Explanation:-
Value | Description |
---|---|
auto | Browsers uses currentColor for caret. |
color | Specifies a color to use for the caret. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |