Posted
Filed under Htm&Javascript

현재 윈도우에 iframe을 작업하고 iframe내 요소에 접근하기 위해서는
 
document.getElementById('iframe_id').contentWindow.document.getElementById("element_id")
 
또는
 
document.getElementById('iframe_id').contentWindow.document.폼이름.파람이름.value
 
와 같이 contentWindow로 iframe의 윈도우를 지정해 주어야합니다


2011/05/19 21:20 2011/05/19 21:20