Hi maulikce,
else if (window.getSelection){
rng=editwin.getSelection();
if (rng.rangeCount > 0 && window.XMLSerializer)
{
rng=rng.getRangeAt(0);
for(var i=0;i<rng.startContainer.childNodes.length;i++)
{
if(rng.startContainer.childNodes[i].tagName=="IMG")
{
html=rng.startContainer.childNodes[i].src;
}
}
}
}
Regards,
Ken