अवलोकन
nodeValue प्रॉपर्टी नोड के मान को प्राप्त या सेट करती है। आपको विशिष्ट नोड निर्दिष्ट करना होगा।
उदाहरण
<!DOCTYPE html> <html> <body> <p>Get the node value</p> <button>Demo Button Text</button> <script> var val = document.getElementsByTagName("BUTTON")[0]; var res = val.childNodes[0].nodeValue; document.write("<br>Node Value: "+res); </script> </body> </html>