Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
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?
Posted
Updated 10-May-10 5:44am
v2

1 solution

Hi qasimidl,

In parent page, write on javascript function which will set focus on that tab. and on the close event of window call the javascript of parent page.

Javascript in parent page :

function Fn1()
{
    // Your code here
}


Javascript in child window:

window.opener.Fn1();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900