document.getElementById('iframe的ID').contentWindow.document.getElementById('元素的ID') 注意要加上contentWindow,往往出现问题都是因为这个容易被忽略,它代表frame和iframe内部的窗口对象。