This example uses a shorthand method for the namedItem() method.
Click "Get" to get the content of the p element with id="myElement":