To make a long story short, I need to use JavaScript to add an image to an html5 game given the URL. The catch is that it is inside a program called gamemaker html5, which is basically a drag and drop IDE for creating HTML games.
I don't know any JavaScript, and simply need is code to add an image given the URL. Can someone please translate the following html into JavaScript for me?
<img src="http://www.mydomain.com/myimagefile.gif"></img>
This is all contained on an html5 canvas, so I need to be able to pop the image onto x,y coordinates.