每次加载后,IE11窗口名称都会重置为原始名称 [英] IE11 window name is reset to the original after every load

查看:81
本文介绍了每次加载后,IE11窗口名称都会重置为原始名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE iframe窗口名称在每次加载后重置为原始值。

IE iframe window name is reset back to the original after every load.

重现的步骤:

Steps to reproduce:

1。创建一个目标设置为iframe的表单,名为NAME-A。

1. Create a form with a target set to iframe named NAME-A.

2。提交表单方法= A

2. Submit a form method=A

3。   on load A将窗口名称设置为NAME-B

3.  on load A sets window name to NAME-B

4。 IE返回iframe.contentWindow.name = NAME-B(正确)

4. IE returns iframe.contentWindow.name = NAME-B (correct)

5。将iframe src更改为B

5. change iframe src to B

6 B未对window.name进行更改。

6 B is not making changes to window.name.

7。在加载iframe.contentWindow.name被设置回NAME-A(不正确,因为它没有被更改,应该仍然是NAME-B)。

7. on load iframe.contentWindow.name is set back to NAME-A (incorrect, since it wasn't changed and should still be NAME-B).

谢谢。

推荐答案

验证您的标记....名称不能是js文字。

validate your markup.... names can't be js literals.

尝试使用JSON.stringify(窗口)

try JSON.stringify(window)

以节省混淆请包含可用于mashup的公共链接或完整的mashup标记(已验证)

to save confusion please include a publicly accessible link to your mashup or your full mashup markup (validated)

问候。


这篇关于每次加载后,IE11窗口名称都会重置为原始名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆