Refresh the parent browser when the popup is closed

When you click on a hyperlink on the popup window the popup closed & the parent window needs to be refreshed.

To satisfy this need you have to write the following code in the hyperlink (“close window”) of popup window.

javascript:self.close(); // closes the current window (Popup).

opener.location.reload(); // Reloads the content of the parent window.

Tags:

Leave a Reply

Recent Comments

  • Stanford Reach: Great post. Thanks!
  • Shu Crunk: I was simply browsing for useful blog articles intended for a project research and I happened to stumble...
  • Marya: Hey rather wonderful weblog!! I’ll bookmark your weblog and grab the feeds conjointly…
  • John Vay: ive just started my own hosting company its such hard work haha :P
  • write a good resume: Your the best!