{"json_modified": "2016-10-22T06:34:05.571481", "uuid": "b68b2ee4-47b7-472d-9032-a72b025c8419", "title": "Document.getElementsByClassName()", "url": "/en-US/docs/Web/API/Document/getElementsByClassName", "tags": ["API", "Reference", "R\u00e9f\u00e9rence", "Method", "HTML5", "DOM", "Gecko", "DOM Element Methods"], "translations": [{"uuid": "d51d2718-9891-494a-85a2-96261bc252a1", "title": "Document.getElementsByClassName()", "url": "/de/docs/Web/API/Document/getElementsByClassName", "tags": ["Methode", "API", "DOM Element Methoden", "Gecko DOM Referenz", "Referenz", "HTML5", "DOM", "Gecko"], "summary": "Gibt ein Array-\u00e4hnliches Objekt von allen Kindelementen welche den gegebenen Klassennamen besitzen. Wenn dies auf das document-Objekt ausgef\u00fchrt wird, wird das gesamte Dokument durchsucht, inklusive des root-Knoten. Man kann ebenfalls getElementsByClassName()
mit jedem Element aufrufen; es werden nur Nachfolgende Elemente des gegebenenen root-Element zur\u00fcckgegeben.", "localization_tags": [], "locale": "de", "last_edit": "2016-01-09T13:16:41", "review_tags": []}, {"uuid": "9557facd-52b4-4634-a0a8-5c038e3875fb", "title": "Document.getElementsByClassName()", "url": "/es/docs/Web/API/Document/getElementsByClassName", "tags": [], "summary": "Retorna un objecto similar a un array de los elementos hijos que tengan todos los nombres de clase indicados. Cuando es llamado sobre el objeto document , la busqueda se realiza en todo el document, incluido el nodo ra\u00edz. Tambi\u00e9n puedes llamar getElementsByClassName()
sobre cualquier elemento; en ese caso retornara s\u00f3lo los elementos hijos del elemento ra\u00edz indicado que contengan los nombres de clase indicados.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-08-26T19:53:41", "review_tags": []}, {"uuid": "87245c69-271d-418d-bace-64f47a4fd9a2", "title": "document.getElementsByClassName", "url": "/fr/docs/Web/API/Document/getElementsByClassName", "tags": [], "summary": "", "localization_tags": [], "locale": "fr", "last_edit": "2014-10-23T20:42:48", "review_tags": []}, {"uuid": "0bedde38-9c29-48e6-a206-93c9b990d50b", "title": "document.getElementsByClassName", "url": "/ja/docs/Web/API/Document/getElementsByClassName", "tags": ["DOM", "Gecko", "\u8981\u66f4\u65b0"], "summary": "", "localization_tags": [], "locale": "ja", "last_edit": "2014-10-28T08:21:36", "review_tags": []}, {"uuid": "8d557802-b22c-487a-947d-1ec867cd7e89", "title": "Document.getElementsByClassName()", "url": "/pt-BR/docs/Web/API/Document/getElementsByClassName", "tags": ["API", "Refer\u00eancia", "M\u00e9todos de Elementos DOM", "Gecko", "HTML5", "DOM", "M\u00e9todo"], "summary": "Retorna um vetor de objetos com todos os elementos filhos\u00a0que possuem\u00a0o nome da\u00a0classe dada. \u00a0Quando invocado no objeto\u00a0document, o documento\u00a0\u00e9 examinado por completo, incluindo o n\u00f3 raiz.\u00a0Voc\u00ea tamb\u00e9m pode invocar\u00a0getElementsByClassName()
em\u00a0qualquer elemento; isso retornaria somente elementos\u00a0que s\u00e3o descendentes do n\u00f3 raiz especificado\u00a0com o nome da classe.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2016-07-11T20:18:45", "review_tags": []}, {"uuid": "c858e507-40eb-41ab-94de-c63997f63eb7", "title": "document.getElementsByClassName", "url": "/pt-PT/docs/DOM/document.getElementsByClassName", "tags": ["Refer\u00eancia_do_DOM_Gecko"], "summary": "", "localization_tags": [], "locale": "pt-PT", "last_edit": "2014-10-23T12:46:15", "review_tags": []}, {"uuid": "1bcead05-bd83-418a-9dc2-8ec9d6cf6c6a", "title": "Document.getElementsByClassName()", "url": "/ru/docs/Web/API/Document/getElementsByClassName", "tags": [], "summary": "\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTMLCollection
\u00a0\u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u043a\u043b\u0430\u0441\u0441\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 'document', \u043f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0443, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0412\u044b \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c getElementsByClassName()
\u00a0 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0430, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2016-05-26T03:34:08", "review_tags": []}, {"uuid": "19f9f1a0-322f-41ce-9869-0d32e5236625", "title": "Document.getElementsByClassName()", "url": "/zh-CN/docs/Web/API/Document/getElementsByClassName", "tags": [], "summary": "\u8fd4\u56de\u4e00\u4e2a\u7c7b\u4f3c\u6570\u7ec4\u7684\u5bf9\u8c61\uff0c\u5305\u542b\u4e86\u6240\u6709\u6307\u5b9a class \u540d\u79f0\u7684\u5b50\u5143\u7d20\u3002\u00a0Returns an array-like object of all child elements which have all of the given class names. When called on the document object, the complete document is searched, including the root node. You may also call getElementsByClassName()
on any element; it will return only elements which are descendants of the specified root element with the given class names.", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2015-05-29T19:29:56", "review_tags": []}, {"uuid": "550f6d74-f073-4907-bbe7-151e5efb07da", "title": "Document.getElementsByClassName()", "url": "/zh-TW/docs/Web/API/Document/getElementsByClassName", "tags": ["\u5f85\u7ffb\u8b6f"], "summary": "\u91dd\u5c0d\u6240\u6709\u7d66\u5b9a\u7684 class \u5b50\u5143\u7d20\uff0c\u56de\u50b3\u985e\u4f3c\u9663\u5217\u7684\u7269\u4ef6\u3002\u7576\u547c\u53eb document \u7269\u4ef6\u6642\uff0c\u5b83\u6703\u641c\u5c0b\u6574\u500b\u6587\u4ef6\uff0c\u5305\u62ec\u6839\u7bc0\u9ede\u5728\u5167\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728\u6240\u6709\u5143\u7d20\u547c\u53eb getElementsByClassName()
\uff0c\u90a3\u5b83\u5c31\u53ea\u6703\u56de\u50b3\u542b\u6709\u7d66\u5b9a class \u7684\u7279\u5b9a\u6839\u5143\u7d20\u7684\u5f8c\u4ee3\u5143\u7d20\u3002", "localization_tags": [], "locale": "zh-TW", "last_edit": "2016-10-22T06:33:56", "review_tags": []}], "modified": "2016-09-19T03:10:51", "label": "Document.getElementsByClassName()", "localization_tags": [], "locale": "en-US", "id": 3662, "last_edit": "2016-09-19T03:10:46", "summary": "Returns an array-like object of all child elements which have all of the given class names. When called on the document object, the complete document is searched, including the root node. You may also call getElementsByClassName()
on any element; it will return only elements which are descendants of the specified root element with the given class names.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Examples", "title": "Examples"}, {"id": "Get_class_is_test_elements", "title": "Get class is test elements"}, {"id": "sect1", "title": "\u00a0"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "Specification", "title": "Specification"}], "slug": "Web/API/Document/getElementsByClassName", "review_tags": []}