how to access all images in a document javascript

JavaScript
how to access all images in a document javascript
Source

Also in JavaScript: