Thursday, October 7, 2010

How to focus parent window when we click a link in Child window?

Scenario : Sometimes we need to copy the whole info entered in child window & carry on the rest operations. In those scenarios the focus need to be shifted back to parent window.

Solution: Just call  opener.focus() method on button/href click.

Example:

onclick="opener.focus()">

No comments: