A frame or iframe can have an id= attribute.

Then getElementByID may want to grab this object by id.
Such happens in amazon.com.