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 问题的方法,我将不胜感激。

谢谢

4

1 回答 1

2

试试这篇文章

http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/92df3532-7497-41cb-b3bf-0f8cab7451d1

于 2012-05-04T10:50:47.307 回答