close
原來,要取得frame裡,頁面的元素,還要多一層寫法:
var ele = window.frames['frame_name'].document.getElementById('element_id');
參考:How can I get an element from within a frameset frame using JavaScript?
文章標籤
全站熱搜
原來,要取得frame裡,頁面的元素,還要多一層寫法:
var ele = window.frames['frame_name'].document.getElementById('element_id');
參考:How can I get an element from within a frameset frame using JavaScript?
留言列表