Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I open a popup window by clicking an HTML button. From the popup I save data in a table. I want when I close the window then parent page refresh automatically.
I tried different ways. Such as I wrote this code in child page but does not work
body onunload="window.opener.location=window.opener.location;"
Posted
Updated 2-Oct-14 4:05am
v2
Comments
Abdul Samad KP 15-Sep-14 1:41am    
Did you try
window.opener.location.href = window.opener.location.href;
this is working for me

you can do one thing in parent page write like this
window.location.reload();
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900