为什么showModalDialog需要< base target =" _self">? [英] why showModalDialog need <base target="_self">?

查看:72
本文介绍了为什么showModalDialog需要< base target =" _self">?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好:D,我有一个问题。
为什么我们需要把< base target =" _self">当我们使用showModalDialog时,在子页面上标记,我知道将其打开,子页面的帖子将打开一个新页面,我的问题是为什么会发生这种情况?

我已经搜索了anwser但是没有找到有人帮助我吗?

因任何英语错误而讽刺。

解决方案



窗口是模态,即它具有焦点并且在其父节点上方具有顶部z顺序..在对话框关闭之前,您无法将焦点移回父窗口。

使用showModelessDialog方法代替虽然window.open更符合跨浏览器标准,但这取决于您的网络应用程序是针对普通公众还是内部网应用程序,您知道每个人都将使用IE。

问候。

Hi folks :D, i have a question.
Why we need put the <base target="_self"> tag on the child page when we use showModalDialog, i know that whitout it the post of the child page will open a new page, my question is why this happen?

I already searched the anwser but dont find it.Can someone help me?


Sry for any english mistakes.

解决方案

Hi,

The window is Modal, that is it has  focus and top z-order above its parent.. you cannot move focus back to the parent window until the dialog is closed.

Use the showModelessDialog method instead, although window.open is more cross-browser compliant, but that depends if your web app is for the general public or an intranet application, where you know everyone will be using IE.

Regards.


这篇关于为什么showModalDialog需要&lt; base target =&quot; _self&quot;&gt;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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