I have small requirement: I need add image over(up) the another image through javascript. Please give me the suggestion!

function sampleImage()
{
document.getElementById('img1').innerHTML='<img src="C:\Users\rajasekhark\Desktop\assets\images\Cock.png" />';
}
You should do (I saw jquery tag):
And an advice: DO NOT use full path to your local disk …