autocapitalize
Description
The autocapitalize of HTMLElement for JS returns the current autocapitalization state for the element, or an empty string if it hasn't been set. Note that for input and textarea elements that inherit their state from a form element, this will return the autocapitalization state of the form element, but for an element in an editable region, this will not return the autocapitalization state of the editing host (unless this element is, in fact, the editing host).
Can be set, to set the autocapitalize content attribute (and thereby change the autocapitalization behavior for the element).
Useful for voice input or a virtual keyboard, but not a physical keyboard.
Syntax
element.autocapitalize [ = value ]