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

nomadjapan’s picture

Status: Active » Closed (fixed)

I 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.