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();
img = iframe.contentDocument.getElementById(imgId);
本文介绍如何使用JavaScript在不同浏览器中获取iframe内的元素。对于IE浏览器,可以通过frames对象和getElementById方法实现;对于Firefox等现代浏览器,则需使用contentDocument属性来访问iframe内部DOM。
454

被折叠的 条评论
为什么被折叠?



