Closed (fixed)
Project:
Thickbox
Version:
6.x-1.0
Component:
User interface
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2008 at 13:01 UTC
Updated:
14 Nov 2008 at 01:33 UTC
Hi, all.
I would like to know the way to implement the function anyway. When I closed modal window which is opened with iframe of ThickBox, I want to keep the focus in the position where modal window was opened.
(Action)
1)The parent-URL has a focused button(assigned id).
2)Open child-URL by pressing the focused button on parent-URL.
3)Close child-URL.
4)The focus is lost!! The focus appears when the Tab key is pressed.
->As for focus, I want to hit the same place as "1)".
As alternatives, The parent-URL has several id, the focus only has to hit the id somewhere at least.
Thank you for your kindness and support.
Comments
Comment #1
nomadjapan commentedI got a good answer in other URL. The method is to add the following.
onclick="self.parent.tb_remove(); window.parent.document.getElementById('_button_id_').focus()"
Thank you.