If you have a Google account, you can save this code to your Google Drive.
Google will ask you to confirm Google Drive access.
Save file as:
If you have saved a file to Google Drive, you can open it here:
Click the button get the name of the body element's child nodes
Note: Internet Explorer 8 and earlier does not support the localName property.
Note: The localName property returns the name of Elements and Attributes, for other node types, in this example #text nodes, the return value is null.