Lotus Notes和IE问题"document.all("RunAgentCreateAns").click()在IE11中不起作用"

1 javascript lotus-notes internet-explorer-11

我正在支持IE浏览器中使用的旧Lotus Notes应用程序.在很少有用户开始使用IE11之前,一切都很好.

JS代码不起作用

document.all("RunAgentCreateAns").click()
Run Code Online (Sandbox Code Playgroud)

RunAgentCreateAns是Lotus Notes中的Button ID.

相同的代码在IE9和IE8中工作.不知道为什么它不能在IE11中工作

Per*_*ten 5

IE11不支持document.all().请document.getElementById()改用.有关详细信息,请参阅http://msdn.microsoft.com/en-us/library/ie/ms537434(v=vs.85).aspx.