javascript读取iframe及Open用法

来源:互联网 发布:mac 虚拟机 农行网银 编辑:程序博客网 时间:2024/05/29 16:29

 javascript读取iframe里的值用法


//ie
img = document.frames("crop").document.getElementById(imgId);


弹出窗口,并焦点在新窗口

 

window.open('editPhotoPage.m5?photoId='+photoId,'','resizable=yes,status=yes,toolbar=yes,left=200,top=200').focus();

//firefox
img = iframe.contentDocument.getElementById(imgId);