2012-10-18 2 views

답변

0

는 ('iframe이')이

docment.getElementById을보십시오. contentWindow를.

document.getElementById를 ('되는 frameID'). contentWindow.document.body.innerHTML

document.getElementById를 ('되는 frameID'). contentWindow.document.body.outerHTML

VAR의 문서 = document.getElementById를 ('FrameId') .contentWindow.document;

http://www.w3schools.com/jsref/dom_obj_frame.asp

+0

답장을 보내 주셔서 감사합니다. 위의 코드를 어떻게 추가 할 수 있습니까? – romi

+0

함수 추가 function AccessiFrame() { var doc = document.getElementById ('FrameId'). contentWindow.document; var innerHTML = doc.body.innerHTML; 알림 (innerHTML); // 다른 곳으로 을 할당하거나 doc 객체의 특정 요소를 찾으십시오 } – Ozgur

+0

도움을 주셔서 감사합니다 ... – romi

관련 문제