Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for HTMLInputElement: selectionEnd property.
Developer library 6
Firefox 51 release notes for developers
currently playing sound. ### DOM - The DOMImplementation.hasFeature() now returns `true` in all cases ([Firefox bug 984778](https://bugzil.la/984778)). - The HTMLInputElement and HTMLTextAreaElement properties `selectionStart` and `selectionEnd` now correctly return the current position of the text input cursor when there's no selection, instead of returning 0 ([Firefox bug 1287655](https://bugzil.la/1287655)). - T
` ` HTML attribute value
if present, means this field cannot be edited by the user. Its `value` can, however, still be changed from JavaScript code that directly sets the value of the HTMLInputElement.value property. > [!NOTE] > Because a read-only field cannot have a value, `required` does not have any effect on inputs with the `readonly` attribute also specified. ### size The `size` attribute is a numeric value indicating how many char
` ` HTML attribute value
attribute which, if present, means this field cannot be edited by the user. Its `value` can, however, still be changed by JavaScript code directly setting the HTMLInputElement `value` property. > [!NOTE] > Because a read-only field cannot have a value, `required` does not have any effect on inputs with the `readonly` attribute also specified. ### size The `size` attribute is a numeric value indicating how many ch
` ` HTML attribute value
oolean attribute, if present, means this field cannot be edited by the user. Its `value` can, however, still be changed by JavaScript code directly setting the HTMLInputElement `value` property. > [!NOTE] > Because a read-only field cannot have a value, [`required`](/docs/Web/HTML/Reference/Attributes/required) does not have any effect on inputs with the `readonly` attribute also specified. ### size The `size` att
Document: selectionchange event
and does not bubble. The text input `selectionchange` event fires on the input/textarea element and bubbles up the DOM tree. See the selectionchange event of `HTMLInputElement` and the selectionchange event of `HTMLTextAreaElement` for more details of the text input events. ## Examples ### Basic usage ```js // addEventListener version document.addEventListener("selectionchange", () => { console.log(document.get
Document: getSelection() method
(), which is identical to `window.document.getSelection()`. Currently, `getSelection()` doesn't work on the content of textarea and input elements in Firefox. HTMLInputElement.setSelectionRange() or the `selectionStart` and `selectionEnd` properties could be used to work around this. Notice also the difference between _selection_ and _focus_. Document.activeElement returns the focused element. ## Examples ### Get