function getIframeDoc(id){
var doc;
if (document.all){//IE
doc = document.frames[id].document;
}else{//Firefox
doc = document.getElementById(id).contentDocument;
}
return doc;
}
function submitB(){
var doc = getIframeDoc("frameUpload");
doc.getElementById("formUpload").submit();
}
转载于:https://www.cnblogs.com/lbnnbs/p/4781928.html