The src attribute contains a path pointing to the image you want to embed in the page, which can be a relative or absolute URL, in the same way as href attribute values in elements. It does not store any personal data. reference to our image element: It does so courtesy of the getElementById Or, if you want to apply it a specific page, you can enque this js script. How to display a random image in JavaScript? Onwards to learning how this all works. Generate your very own fake Instagram Messanger Chat and prank your friends. Ajax and JavaScript. |,