Refreshing parent window...

Status
Not open for further replies.

whoopy_whale

Journeyman
I have a page with some links,clicking upon which opens a pop up window using java script.The pop up window contains a form.After submitting the form,a close button is shown.
Now,after clicking the close button,the parent window should refresh.
It's working correctly upto the closing part.I dont know how to refresh the parent window...

Help please...
 

FatBeing

Administratus Rotundus
I don't know the exact code off-hand, but in the onClose event of your popup, use this
Code:
window.caller.reload()
 
OP
whoopy_whale

whoopy_whale

Journeyman
I tried this code,but it's not refreshing....It' closing alright...

Code:
<input type="button" value="Close this window" onClick="window.close();window.caller.reload();">
 
Last edited:
Status
Not open for further replies.
Top Bottom