软讯网络 > 网站建设 > 网页制作 > javascript读取iframe及Open用法
【标 题】:javascript读取iframe及Open用法
【关键字】:
javascript,iframe,Open
【来 源】:http://blog.csdn.net/babydavic/archive/2006/07/05/879026.aspx
javascript读取iframe及Open用法
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);