var oPs = document.getElementsByTagName("p");
var oImgsInP = oPs.getElementsByTagName("img");
<p style="color:red" id="p1">
<img src="images/donramon.jpg" name="something" />
<input type="button" value="show the tag" />
I keep getting the "oPs.1 is null or not an object" and I am copying the code exactly as it is in the book, can anyone help please?