{"json_modified": "2016-07-19T00:53:45.316155", "uuid": "e38398cf-d43a-4d0e-9c53-4de2e194a3e1", "title": "HTMLInputElement.setSelectionRange()", "url": "/en-US/docs/Web/API/HTMLInputElement/setSelectionRange", "tags": ["API", "Reference", "HTMLInputElement", "HTML DOM", "Text Field Selection API", "Method"], "translations": [{"uuid": "b665817a-0a18-46ea-8cc9-2a315f2599da", "title": "HTMLInputElement.setSelectionRange()", "url": "/fr/docs/Web/API/HTMLInputElement/setSelectionRange", "tags": ["API", "Reference", "HTMLInputElement", "Input Selection", "R\u00e9f\u00e9rence", "S\u00e9lectionner texte input"], "summary": "La m\u00e9tode\u00a0HTMLInputElement.setSelectionRange()
d\u00e9finit la position de d\u00e9but et de fin de la s\u00e9lection de texte d'un \u00e9l\u00e9ment <input>
. De fa\u00e7on facultative, dans les nouvelles versions des navigateurs, il est possible de sp\u00e9cifier la direction\u00a0dans laquelle la s\u00e9lection a \u00e9t\u00e9\u00a0faite ; cela permet d'indiquer, par exemple, que la s\u00e9lection a \u00e9t\u00e9 r\u00e9alis\u00e9e par l'utilisateur en partant de la\u00a0fin de la s\u00e9lection pour aller vers le d\u00e9but.", "localization_tags": [], "locale": "fr", "last_edit": "2015-05-01T22:42:07", "review_tags": []}, {"uuid": "f4452456-b3b9-421d-bbfc-65bfc87a8c1d", "title": "HTMLInputElement.setSelectionRange()", "url": "/ru/docs/Web/API/HTMLInputElement/setSelectionRange", "tags": ["API", "Reference", "HTMLInputElement", "HTML DOM", "Text Field Selection API", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 HTMLInputElement.setSelectionRange()
\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 <input>
.", "localization_tags": [], "locale": "ru", "last_edit": "2016-07-19T00:53:36", "review_tags": ["editorial"]}], "modified": "2016-01-28T18:10:16", "label": "HTMLInputElement.setSelectionRange()", "localization_tags": [], "locale": "en-US", "id": 3461, "last_edit": "2016-01-28T18:09:45", "summary": "The HTMLInputElement.setSelectionRange()
method sets the start and end positions of the current text selection in an <input>
\u00a0element.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Example", "title": "Example"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/HTMLInputElement/setSelectionRange", "review_tags": ["technical"]}