close iframe and refresh the main page

i installed this script
and it looks like this:
(using iframe inside the window)

the code to close this open iframe is onclick="self.parent.tb_remove();"
(if you paste it from inside the iframe)

now, i got a change password page that opens inside this window...when the user wrote his new pasword and got a response.write "password changed"...i want that after few seconds this window will be cose(timeout and self.parent.tb_remove();") but main problem is how when this page closes to refresh the main page too...

i realy don;t know if it doable but i will hope someone help:)
Who is Participating?
Michel PlungjanConnect With a Mentor IT ExpertCommented:
... %>
password changed...
function changeIt() {
  parent.tb_remove(); parent.location.reload(1);

<% ...
Michel PlungjanIT ExpertCommented:
how about
onClick="parent.tb_remove(); parent.location.reload(1)"
sasha85Author Commented: work with a button but how can o do this i put it into code that will run when i will get to it?

i mean i can put it into script that will run this when the code bump into this code?
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

sasha85Author Commented:
after changing the pasword i want that there will be response write "pasword changed" and then
after 5 seconds that ="parent.tb_remove(); parent.location.reload(1)"

i cannot use body onload cause it's all in one page and it will be closed before user filled the fields...
sasha85Author Commented: la mplungjan!
Michel PlungjanIT ExpertCommented:

Registration date: 10/27/2007
114  Questions Asked

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.