Refresh page when popup closes

Asked

Viewed 3,076 times

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?

3 answers

2


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>
  • David explains his solution more, so you help people more.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.