3 ms·
getElementsByTagName always returns a NodeList, which is an Array-like object. You want the first thing in the array.
by long 16y ago
getElementsByTagName always returns a NodeList, which is an Array-like object. You want the first thing in the array.