2010-06-16 4 views
0

동적으로 iframe의 컨텐츠를 html 문서의 컨텐츠로 설정하려고합니다. 그것은 자바 스크립트에서 메모리에 문자열의 형태입니다.동적 Iframe 인쇄

그런 다음 iframe을 인쇄하고 싶습니다.

아이디어가 있으십니까?

+0

다음은 해결책입니다. http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome –

답변

0

예.

var iframe = document.getElementByID("some ID"); 
iframe.contentDocument.write("HTML string"); 
iframe.contentWindow.print(); 
관련 문제