无法向IE的DispHTMLWindow2写入属性

时间:2014-09-15 20:05:35

标签: javascript internet-explorer

我正在开发一个具有弹出功能的系统。

目前我无法在IE上使用它。

每个其他浏览器在window.open调用上返回一个DOM Window元素,但IE返回一个DispHTMLWindow2对象,该对象无法正常工作。

出于阅读目的,它的工作正常,但是当我需要修改弹出窗口内的信息时,它在IE上不起作用。

我需要从开场白设置弹出窗口的标题,我正在这样做:

popup.document.title = 'Some title';

这不起作用。既不为弹出窗口设置全局属性也可以:

popup.someRandomProperty = 'foo';

好吧,如果它可能有用,我会在一个安全的应用程序上运行,通过HTTPS运行。

编辑:打开窗口的代码的摘录:

// Defining window specs
windowSpecs = "width="  + persistentWindowSettings.width  + "," +
              "height=" + persistentWindowSettings.height + "," +
              "top="    + persistentWindowSettings.top    + "," +
              "left="   + persistentWindowSettings.left   + "," +
              "status=0,"    +
              "location=no," +
              "resizable";

// A chat window has not yet been opened for this interaction, so we'll open a new one.
windowUrl = "popup_chat.php?interactionId=" + interactionId;
windowName = "";
popupChatWindow = window.open(windowUrl, windowName, windowSpecs);
popupChatWindow.windowSlotId = persistentWindowSettings.slotId; // this doesn't work

0 个答案:

没有答案