Lokking for other properties of nodeValue method in javascript

M

Michael Landberg

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
 
T

Thomas 'PointedEars' Lahn

Michael said:
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-Core/core.html#ID-1950641247


HTH

PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top