Page 1 of 1

iframe의 window 객체....

Posted: 2005 10 28 17:30 17
by 손님
firefox에서...
iframe의 window 객체를 얻어오고 싶습니다.

iframe의 document에 onclick이벤트에서 실행될 함수인데요.
해당 함수에서 this로 iframe의 document는 바로 읽어들일수가 있는데...
window 객체는 this.window 이런식으로 해봐도 얻어올수가 없더군요.

방법이 없을까요..

Posted: 2005 11 01 09:58 06
by crizin
이벤트 붙일때는 objIframe.contentWindow.document 이쪽에 붙이면 잘 되던데..

window 대신 contentWindow를 쓰면 될 것 같아요..

Posted: 2005 11 01 17:50 16
by 손님
crizin wrote:이벤트 붙일때는 objIframe.contentWindow.document 이쪽에 붙이면 잘 되던데..

window 대신 contentWindow를 쓰면 될 것 같아요..
그렇게 해도 안되더라구요...
이벤트는 objIframe.contentWindow.document 이쪽에 붙였구요...
this.contentWindow..라고 썼습니다만.... T_T