I have an iframe from anoter page in another domain.:
For example:
<iframe id="myframe" src="http://stackoverflow.com/">
</iframe>
and in jQuery, i have this:
$(document).ready(function(){
$("#myframe").load(function(){
var obj = $("#myframe").contents().find('#hlogo');
div.append('<img src="http://www.my-domain.com/img/myimage.jpg" />');
});
});
But it is not adding an image. What can I do?
In this fiddle, I am trying to change the image to something else -Same problem, different sources.