Jump to content
houssam_ballout

Html Close Issue

Recommended Posts

You can use the onclose event to run a function to refresh the parent. You can get a reference to the parent using window.opener, which is only available to windows that were opened by another page.

Share this post


Link to post
Share on other sites

I'm sure you can find examples of using the onclose event. There's nothing special about using window.opener, it's a replacement for using the window object when you're working with a different page. If you want to run an alert on the parent window, then instead of using alert or window.alert you would use window.opener.alert.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...