Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28671
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: problem same element objetc |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <410a3c99-009d-45cb-aa85-119c0bb2e213@googlegroups.com> |
| Date | 2015-09-10 17:12 +0200 |
| Message-ID | <XnsA511AF0CF2622eejj99@194.109.6.166> (permalink) |
WALID BELRHALMIA <wbelrhalmia@gmail.com> wrote on 10 Sep 2015 in
comp.lang.javascript:
> i have a question when we do var e= document.getElemtById("foo") i get
> the object>Node>element that it hase id="foo".
No, you do NOT.
document.getElemtById(
should be
document.getElementById(
> But when i do
> e===document.getElemtById("foo") i get true
Same objection, you do not.
> it's the same object it
> return always the some object
Do you mean "the same object"?
If so, ofcourse,
if you request a pointer to a node twice
you get the same node twice.
> can someone explain me how that work
Why are you asking?
What do you want to accomplish?
This is not schoolwork, or is it?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
problem same element objetc WALID BELRHALMIA <wbelrhalmia@gmail.com> - 2015-09-10 07:50 -0700
Re: problem same element objetc "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-10 17:12 +0200
Re: problem same element objetc Sam Desborough <sam.desborough@gmail.com> - 2015-09-10 11:43 -0700
Re: problem same element objetc "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-10 21:04 +0200
csiph-web