本文介绍了专注于AJAX标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我打算使用AJAX TabContainer并使用8个标签.关闭窗口后,我想使用JavaScript将焦点设置在特定选项卡上.
有一个按钮可以打开窗口,然后从给定列表中选择项目,然后关闭窗口,并根据一个值选择一个选项卡.
例如,如果用户选择近亲"并关闭窗口,则近亲"选项卡应该处于焦点,依此类推.
我该如何实现呢?
I amm working with AJAX TabContainer and using 8 tabs. After closing the window, I want to set the focus on a particular tab using JavaScript.
There is a button to open the window and select the item from the given list and then close the window, and according to a value, a tab should be selected.
For example, if the user selects "Next of kin" and closes the window, then the ''next of kin'' tab should be in focus, and so on.
How can I implement this?
推荐答案
function Fn1()
{
// Your code here
}
子窗口中的Javascript:
Javascript in child window:
window.opener.Fn1();
这篇关于专注于AJAX标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!