window.showModalDialog将焦点设置在基页上 [英] window.showModalDialog to set focus on base page

查看:119
本文介绍了window.showModalDialog将焦点设置在基页上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用window.showModalDialog从我的app中的父页面启动子页面。我只是在客户端上调用该子页面在父页面上单击按钮控件的事件。但是当我从子页面返回到父页面时,对父页面上的按钮控件的关注就开始了。可以帮助我。一旦从子页面返回到父页面,我就需要将焦点设置在按钮控件上。我怎么能这样做?



我用过

< base target =_ self/>



重装我的父页面。并且重点关闭。





提前致谢



Yogesh

解决方案

关闭模态弹出窗口时,将焦点设置为按钮。

 


#buttonId)。focus();


Hi all,

I am using "window.showModalDialog" to launch the child page from parent page in my app.I just invoke that child page on client click event of button control on parent page.But the focus on button control on parent page goes of when i come back to parent page from child page.Can some body help me on that. I need to set the focus on the button control as soon as I come back to parent page from child page. How can I do that ??

I used
<base target="_self" />

which reload my parent page. and focus goes off.


Thanks in advance

Yogesh

解决方案

When you close the modal popup, set the focus to the button.


("#buttonId").focus();


这篇关于window.showModalDialog将焦点设置在基页上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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