티스토리 뷰

공부

[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

'공부' 카테고리의 다른 글

[Git] How to `unrevert ` a previously reverted commit?  (0) 2019.10.15
[Java] convert `String` to `TimeStamp`  (0) 2019.10.15
[JS] RegExp  (0) 2019.10.15
[JS] CORS(Cross Origin Request Security)  (0) 2019.10.14
[Shell] compare to `String `, `Integer`  (0) 2019.10.14
댓글