IE直接得到frame可通过ID,name,firefox通过name window.frame['ID/name'] ar f_doc=f1.contentDocument||f1.contentWindow.document;