2010-02-25 3 views
1

내가 완전히 자바 스크립트를 사용하여 IFrame을을 새로 고치는 응용 프로그램을 작성 바빠, 지금 내 문제는 내가 6는 IE와 호환 contentDocument.location.reload 6

'document.getElementById(...).contentDocument.location' is null or not an object 

IE에서 다음과 같은 오류를 얻고 있다는 것입니다 내 코드는 다음과 같습니다.

document.getElementById('mobi').contentDocument.location.reload(true); 

및 mobi가 있습니다. 모비는 iframe이 오래된 IE :

document.getElementById를 ('모비')에 대한

답변

3

사용 contentWindow의 ID입니다 contentWindow.location.reload (참).;

(contentWindow에 대한 자세한 내용)

+0

+1 그리고 이것은뿐만 아니라 크롬과 파이어 폭스에 노력하고 있습니다 ... – gotqn