0
iframe 요소의 contentWindow.document에 액세스하려고하면 0x80070005 - Access is denied.
오류가 발생합니다.0x80070005 - iframe DOM 요소에 액세스하려고하면 액세스가 거부됩니다.
iframe 문서의 요소에 액세스 할 수 있습니까?
파일 :
- iframe_test.ahk
<html>
<head></head>
<body>
<iframe width="100%" height="100%" name="myframe" src="http://www.w3schools.com"></iframe>
</body>
</html>
iframe_test.a iframe.html iframe.html 홍콩
Gui, New, Resize MaximizeBox
Gui, Add, ActiveX, vWB w780 h580, % A_ScriptDir "\iframe.html"
Gui, show, w800 h600
Loop
Sleep 10
Until (WB.readyState=4 && WB.document.readyState="complete" && !WB.busy)
msgbox % WB.document.All["myframe"].contentwindow.document.documentElement.innerHTML
가능합니다. 그러나 이렇게 할 때 도메인 간 제한이 있습니다. 도메인에 권한이 없으므로 작동하지 않는 iframe을 통해 w3schools 웹 사이트의 콘텐츠에 액세스하려는 경우 – diggersworld
즉, 로컬 파일에서는 불가능합니다. 댓글 주셔서 감사합니다. – NbdNnm