Get first child node of specific type - JavaScript
===

Is it possible to get a child dom element, which will be the first child of a specific type.

For example in both of these examples i want to get the img element:

    <a id="mylink" href="#"><img src="myimage.jpg" /></a>

    <a id="mylink" href="#"><span></span><img src="myimage.jpg" /></a>