How to get text from input? JavaScript

Опубликовано: 02 Июнь 2026
на канале: Ефим Рябов
2,567
44

We receive custom text input in the input field (HTML element) using JavaScript and the browser API.
Publishing with code https://efim360.ru/javascript-kak-pol...

00:00 Site with inputs
00:30 The input element in the markup of the document
01:00 HTML Standard
02:30 Getting the input object
03:25 Command inputs to the console
03:50 Got HTML collection
04:20 Looking for the value property (not the value attribute)
05:40 Getting the required input from the collection

Thanks for watching!

Information links
DOM - translation of the standard - https://efim360.ru/dom/

HTML Standard - Section "4.10.5 The input element" - https://html.spec.whatwg.org/#the-inp...

HTML Standard - The value content attribute section - https://html.spec.whatwg.org/#attr-in...

DOM Standard - Section "4.5. Interface Document "- https://dom.spec.whatwg.org/#interfac...

DOM Standard - Section "The getElementsByTagName (qualifiedName) method" - https://dom.spec.whatwg.org/#dom-docu...