Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31714
| From | Martin Honnen <martin.honnen@gmx.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to reference an updated document object and to have all of its elements and associated values if any as well? |
| Date | 2016-11-14 12:40 +0100 |
| Organization | Liberty Development |
| Message-ID | <o0c7sb$lr4$1@news.albasani.net> (permalink) |
| References | <62558672-b8d4-495a-8ccf-4bce9399d64d@googlegroups.com> |
On 13.11.2016 19:01, justaguy wrote:
> Now, how do I reference / retrieve all the elements and associated values if any for this document?
Well, the
document
object contains all elements and associated values. It is not clear in
which form you want to "retrieve" the elements or values.
> document.all was for old IE browser only, hence, irrelevant for other modern browsers.
document.getElementsByTagName('*') gives you all elements as an
HTMLCollection , see
https://dom.spec.whatwg.org/#concept-getelementsbytagname/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to reference an updated document object and to have all of its elements and associated values if any as well? justaguy <lichunshen84@gmail.com> - 2016-11-13 10:01 -0800
Re: How to reference an updated document object and to have all of its elements and associated values if any as well? Martin Honnen <martin.honnen@gmx.de> - 2016-11-14 12:40 +0100
Re: How to reference an updated document object and to have all of its elements and associated values if any as well? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-11-14 14:16 +0100
Re: How to reference an updated document object and to have all of its elements and associated values if any as well? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-14 17:26 +0100
Re: How to reference an updated document object and to have all of its elements and associated values if any as well? justaguy <lichunshen84@gmail.com> - 2016-11-14 12:48 -0800
Re: How to reference an updated document object and to have all of its elements and associated values if any as well? JJ <jj4public@vfemail.net> - 2016-11-14 18:51 +0700
csiph-web