重定向模态对话问题即8 [英] redirect modal dialog problem ie 8

查看:78
本文介绍了重定向模态对话问题即8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用ie 8来打开一个模式对话框,需要将自己重定向到另一个网址。我的问题是模态对话框总是在新窗口中打开新的URL。以下是我试图解决问题的代码声明:


Hi everyone,

I am using ie 8 to open a modal dialog that is required to redirect itself to another url. My problem is that the modal dialog always opens the new URL in a new window. below are the code statements that I've tried to solve the problem:

window.open("www.microsoft.com");


window.location.replace("www.microsoft.com");


window.navigate("www.microsoft.com");


我还尝试了 <的 位置 属性strong>文档 对象没有不同的结果

有没有人知道这个问题的解决方案?

I've tried also the location property of the document object with no different result

does anyone know a solution for this problem?

推荐答案

那你好!

我之前遇到过同样的问题,但我正在使用表格。当我们有一个模态对话框时,提交结果会像你的问题一样打开一个新窗口(我认为这是同样的问题)。当我命名窗口并将目标设置到表单时,它就解决了。


Hello there!

I had the same problem before, but I was using a form. When we have a modal dialog, the submit result opens a new window just like your problem (I think it's the same problem). It was solved when I named the window and seted a target to the form.


window.name = "testPage";
(...)
<form name="frmTest" action="/testaction" method="post" target="testPage">



它工作正常。


It worked fine.


这篇关于重定向模态对话问题即8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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