2008년 3월 13일 목요일

document 접근에 contentDocument property의 사용

[Object].document 접근시
IE외에는 frame의 document 접근에 contentDocument property를 사용하면 됩니다.




f = document.getElementById("frame");

if ( f.contentDocument ) {

src_doc = f.contentDocument;

working_title = src_doc.title;

}

댓글 없음: