The document instructs on how to change two images simultaneously in JavaScript when the mouse hovers over one image. It specifies not to use a function call and to use two statements to achieve the image replacement. The method involves using 'this.src' and 'getElementById(id).src' for the image elements.