공부

[JS] get element from within an `iframe`

승가비 2019. 10. 15. 00:14
728x90
var iframe = document.getElementById('iframeId');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;

 

[출처] https://stackoverflow.com/questions/1088544/get-element-from-within-an-iframe

728x90
저작자표시 비영리 (새창열림)