1
How can I update a page after closing a popup? After the user opens the popup, I give a series of options that change the page where the user opened the popup and need that updated page after the user closes the popup. How can I do?
1
How can I update a page after closing a popup? After the user opens the popup, I give a series of options that change the page where the user opened the popup and need that updated page after the user closes the popup. How can I do?
2
The function Location.reload()
reload the document:
location.reload();
1
In javascript there is good old function Reload:
location.reload();
And has the advantage of working in the main browsers. :-)
1
I used so:
//principal.htm
<body onunload="window.opener.location.reload();">
//popup.htm
<script>opener.location.reload(); window.close();</script>
Browser other questions tagged javascript html
You are not signed in. Login or sign up in order to post.
David explains his solution more, so you help people more.
– gato