/    Sign up×
Community /Pin to ProfileBookmark

Auto refresh main window when pop-up closes

Hi, my websites opens (when the user clicks a link) a pop-up to ask for information and i was wondering how can i refresh the main window when the user closes the pop-up ?

thanks a lot !

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Nov 26.2003 — The main window has to refresh itself when it sees the child window go away.
Copy linkTweet thisAlerts:
@nialkeiz_hotmaiauthorNov 26.2003 — And the code to do this would be something like? :$

thanks
Copy linkTweet thisAlerts:
@fredmvNov 26.2003 — In the child window:<script type="text/javascript">
onunload = function() { opener.location.reload(); }
</script>
×

Success!

Help @nialkeiz_hotmai spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...