469,318 Members | 1,945 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,318 developers. It's quick & easy.

Lokking for other properties of nodeValue method in javascript

Hi

I am looking for the other properties of nodeValue. I know only
firstChild.nodeValue and lastChild.nodeValue. What other properties
are there? Is there a property whit which I can get a sibling or
something similar?

Regards

Sep 16 '07 #1
1 1288
Michael Landberg wrote:
I am looking for the other properties of nodeValue. I know only
firstChild.nodeValue and lastChild.nodeValue. What other properties
are there? Is there a property whit which I can get a sibling or
something similar?
Node::nodeValue is a DOMString value which is represented as a string value
in ECMAScript implementations. It has no other properties than String
objects have.

You are looking for properties of Node objects instead. `firstChild' and
`lastChild' are such properties, as are `previousSibling' and `nextSibling'.
Each of the aforementioned properties is a reference to another Node object.

http://www.w3.org/TR/DOM-Level-3-Cor...#ID-1950641247
HTH

PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Sep 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by bulk88 | last post: by
1 post views Thread by Stone Chen | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.