Would assigning a member from a DOM element to a variable enable the variable to update itself?

Posted by Roly on Stack Overflow See other posts from Stack Overflow or by Roly
Published on 2010-04-08T06:35:44Z Indexed on 2010/04/08 6:43 UTC
Read the original article Hit count: 294

Filed under:
|

For example if I assign

var n = document.getElementById('A').childNodes.length;

And then later append a child to A, would n update itself or would I have to assign it the new length again?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom