I need a function, that starts, when the DOM is loaded.
In my HTML Page are several empty Image Tags, like and I want to add an Image-Name into the src-property when everything is loaded to get something like
<img src="blank.jpg">.
Best wishes
Chris
OR if you want to add more than one handler for the event:
With jQuery
EDIT:
I realized that you probably want to set the src property before the images load so I changed the code to fire on the document’s load event, which happens before the images start loading.