Refresh the page when closing popup

1

How can I refresh 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 it?

    
asked by anonymous 24.02.2016 / 01:19

3 answers

2

The function Location.reload() reloads the document:

location.reload();

link

    
24.02.2016 / 01:26
1

In javascript there is the good old reload function:

location.reload();

And it has the advantage of working on the major browsers . : -)

    
24.02.2016 / 01:27
1

I used it like this:

//principal.htm
<body onunload="window.opener.location.reload();">

//popup.htm
<script>opener.location.reload(); window.close();</script>
    
24.02.2016 / 01:39