2012-05-04 131 views
1

我有一個彈出窗口,它填充了在父窗口中找到的選擇列表。通過彈出窗口填充父窗口中的選擇框

這裏是我從彈出填充選擇列表中的JavaScript代碼:

function add_2_list(element) { 
    var destinationList =window.opener.document.getElementById('selectlist_id'); 
    var select_index = destinationList.length; 
    destinationList.options[select_index] = new Option(element, element, true) 
} 

此代碼的偉大工程在Mozilla Firefox,但似乎並沒有在Internet Explorer 9,工作

我將不勝感激它如果有人可以幫助我想出辦法如何與IE修復該問題9.

感謝

回答

相關問題