I have an iframe below:
<iframe class='upload_target' name='upload_target' src='#' style='width:0;height:0;border:0px;solid;#fff;'></iframe>
I try to stop the command below, but I keep getting an undefined error:
$('.upload_target').contentwindow is undefined
How can I fix this undefined error?
Below is the code:
$(".uploadbutton").click(function() {
$(".upload_target").contentWindow.stop();
$(".upload_target").contentWindow.document.execCommand("Stop");
return stopImageUpload();
});
source
share