How to get all childNodes in JS including all the ‘grandchildren’? February 10, 2023 by Tarik This is the fastest and simplest way, and it works on all browsers: myDiv.getElementsByTagName("*")