IE11 + on paste event - relative path images are not loading

  • Thread starter Thread starter kiran2mca
  • Start date Start date
K

kiran2mca

Hi,

Only On IE11 browser i have a problem of loading images with relative path.
Issue details:
<input type='text' onpaste='pasteevt()'/>

function pasteevt(){
var tbody = $("tbody", "#tblParent");
var row = $("<tr></tr>");
$("<img></img>").attr('src','../testt/img1.png').appendTo($("<td></td>").appendTo(row));
row.appendTo(tbody);
}

Note:
With the full path images are being loaded properly
$("<img></img>").attr('src','C:/Users/u1/Desktop/testt/img1.png').appendTo($("<td ></td>").appendTo(row));


Can any one help me on this pls?

Thanks,
Kiran.
 
Back
Top